summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2018-05-14 19:03:09 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2018-05-14 19:03:09 +0300
commit690c4b1cd19352fe7b192c5db7f01d58e2d6e2ed (patch)
tree692a8087c456e605413fd67a24a985ada2c5e849 /dev-tex/BibTool/BibTool-2.67.ebuild
parentdev-libs/pybind11: import from jm-overlay (diff)
downloadalexxy-690c4b1cd19352fe7b192c5db7f01d58e2d6e2ed.tar.gz
alexxy-690c4b1cd19352fe7b192c5db7f01d58e2d6e2ed.tar.bz2
alexxy-690c4b1cd19352fe7b192c5db7f01d58e2d6e2ed.zip
dev-tex/BibTool: Version bump
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-tex/BibTool/BibTool-2.67.ebuild')
-rw-r--r--dev-tex/BibTool/BibTool-2.67.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-tex/BibTool/BibTool-2.67.ebuild b/dev-tex/BibTool/BibTool-2.67.ebuild
new file mode 100644
index 0000000..361bc91
--- /dev/null
+++ b/dev-tex/BibTool/BibTool-2.67.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit flag-o-matic
+
+DESCRIPTION="BibTool is a powerful command-line tool to manipulate BibTeX databases."
+HOMEPAGE="http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html"
+SRC_URI="http://mirror.ctan.org/biblio/bibtex/utils/bibtool/${P}.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="doc"
+
+DEPEND="
+ dev-libs/kpathsea
+ doc? ( app-text/texlive )"
+RDEPEND="$DEPEND"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare()
+{
+ sed -e 's,^INSTALL_DIR.*\./mkdirchain,INSTALL_DIR = install -d,g' \
+ -e 's,^BIBTOOL_DEFAULT.*$,BIBTOOL_DEFAULT = \\"\.:/usr/share/bibtool\\",g' \
+ -e 's,^LIBDIR.*$,LIBDIR = @libdir@/bibtool,g' \
+ -e 's,^NON_ANSI_DEFS.*,NON_ANSI_DEFS = @DEFS@ -DSTDC_HEADERS,g' \
+ -e 's,\$(INSTALLPREFIX),\$(DESTDIR)\$(INSTALLPREFIX),g' \
+ -i AutoConf/makefile.in || die
+}
+
+src_configure()
+{
+ append-flags -fno-strict-aliasing
+ econf
+ sed -i -e 's#@kpathsea_lib_static@##' makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+ if use doc ; then
+ ln -s makefile Makefile
+ emake doc
+ fi
+}
+
+src_install()
+{
+ emake DESTDIR="${D}" install
+
+ doman doc/bibtool.1 || die
+
+ if use doc ; then
+ dodoc doc/{bibtool.pdf,c_lib.pdf,ref_card.pdf} || die
+ fi
+}