diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-11-15 17:13:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-11-15 17:13:45 +0000 |
commit | e2d84e38284aeb9d522a7e935554340ddf0e4a6f (patch) | |
tree | 5a7444ee5f2af59431481999f729676090b1e0f3 /app-text/sword/sword-1.7.4-r1.ebuild | |
parent | 519e4d5d99fc43d5c9a038098c029dc4ef9d6792 (diff) |
gentoo resync : 15.11.2017
Diffstat (limited to 'app-text/sword/sword-1.7.4-r1.ebuild')
-rw-r--r-- | app-text/sword/sword-1.7.4-r1.ebuild | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/app-text/sword/sword-1.7.4-r1.ebuild b/app-text/sword/sword-1.7.4-r1.ebuild new file mode 100644 index 000000000000..be1fa4a33141 --- /dev/null +++ b/app-text/sword/sword-1.7.4-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils flag-o-matic + +DESCRIPTION="Library for Bible reading software" +HOMEPAGE="http://www.crosswire.org/sword/" +SRC_URI="http://www.crosswire.org/ftpmirror/pub/${PN}/source/v${PV%.*}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd ~ppc-macos" +IUSE="clucene curl debug doc icu static-libs" + +RDEPEND="sys-libs/zlib + curl? ( net-misc/curl ) + icu? ( dev-libs/icu:= ) + clucene? ( dev-cpp/clucene ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +DOCS="AUTHORS CODINGSTYLE ChangeLog README" + +RESTRICT="test" #Restricting for now, see bug 313207 + +src_prepare() { + sed -i \ + -e '/FLAGS/s:-g3::' -e '/FLAGS/s:-O0::' \ + -e '/FLAGS/s:-O2::' -e '/FLAGS/s:-O3::' \ + configure || die + + sed -i -e '/FLAGS/s:-Werror::' configure || die #408289 + sed -i -e '/^#inc.*curl.*types/d' src/mgr/curl*.cpp || die #378055 + + cat <<-EOF > "${T}"/${PN}.conf + [Install] + DataPath=${EPREFIX}/usr/share/${PN}/ + EOF + epatch "${FILESDIR}/${PN}-1.7.4-gcc6.patch" + epatch "${FILESDIR}/${PN}-1.7.4-configure.patch" + eapply_user +} + +src_configure() { + # TODO: Why is this here and can we remove it? + strip-flags + econf \ + $(use_enable static-libs static) \ + $(use_enable debug) \ + --with-zlib \ + $(use_with icu) \ + --with-conf \ + $(use_with curl) \ + $(use_with clucene) +} + +src_install() { + default + + find "${ED}" -name '*.la' -exec rm -f {} + + + if use doc; then + rm -rf examples/.cvsignore + rm -rf examples/cmdline/.cvsignore + rm -rf examples/cmdline/.deps + cp -R samples examples "${ED}"/usr/share/doc/${PF}/ + fi + + insinto /etc + doins "${T}"/${PN}.conf +} + +pkg_postinst() { + elog "Check out http://www.crosswire.org/sword/modules/" + elog "to download modules that you would like to use with SWORD." + elog "Follow module installation instructions found on" + elog "the web or in ${EROOT}/usr/share/doc/${PF}/" +} |