diff options
Diffstat (limited to 'app-accessibility/edbrowse/edbrowse-3.5.1.ebuild')
-rw-r--r-- | app-accessibility/edbrowse/edbrowse-3.5.1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-accessibility/edbrowse/edbrowse-3.5.1.ebuild b/app-accessibility/edbrowse/edbrowse-3.5.1.ebuild new file mode 100644 index 000000000000..c8e5ad5fdf8b --- /dev/null +++ b/app-accessibility/edbrowse/edbrowse-3.5.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +inherit eutils + +DESCRIPTION="editor, browser, and mail client using the /bin/ed interface" +HOMEPAGE="http://the-brannons.com/edbrowse/" +SRC_URI="http://the-brannons.com/${PN}/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="libressl odbc l10n_fr" + +COMMON_DEPEND=">=dev-lang/spidermonkey-24.0:24 + >=sys-libs/readline-6.0 + >=net-misc/curl-7.36.0 + >=dev-libs/libpcre-7.8 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + odbc? ( dev-db/unixODBC )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + app-arch/unzip" +RDEPEND="${COMMON_DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-implicit-decl.patch" +} + +src_compile() { + jscppflags=$(pkg-config --cflags mozjs-24) + jslib=$(pkg-config --libs mozjs-24) + emake prefix=/usr JSLIB="${jslib}" JS_CXXFLAGS="${jscppflags}" STRIP='' + if use odbc; then + # Top-level makefile doesn't have this target. + cd src + emake prefix=/usr JSLIB="${jslib}" JS_CXXFLAGS="${jscppflags}" STRIP='' + cd .. + fi +} + +src_install() { + cd src + emake prefix=/usr DESTDIR="${D}" install + if use odbc; then + dobin edbrowseodbc + fi + cd .. + dodoc CHANGES README todo + cd doc + dobin setup.ebrc + dohtml usersguide.html philosophy.html + dodoc sample.ebrc + if use l10n_fr; then + dohtml usersguide_fr.html philosophy_fr.html + dodoc sample_fr.ebrc + fi +} |