summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-10-20 14:17:32 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-10-20 14:17:32 +0200
commit3822f7288c2136097858355a29ca92c70ce4ad84 (patch)
treee8c96392dd23b4b1c950bad90b986c27a70d71ff /app-text
parentapp-text/highlight: remove old (diff)
downloadgentoo-3822f7288c2136097858355a29ca92c70ce4ad84.tar.gz
gentoo-3822f7288c2136097858355a29ca92c70ce4ad84.tar.bz2
gentoo-3822f7288c2136097858355a29ca92c70ce4ad84.zip
app-text/highlight: bump to 3.32
Package-Manager: portage-2.3.2
Diffstat (limited to 'app-text')
-rw-r--r--app-text/highlight/Manifest1
-rw-r--r--app-text/highlight/highlight-3.32.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest
index 59cb0b553ba7..3315b23b8802 100644
--- a/app-text/highlight/Manifest
+++ b/app-text/highlight/Manifest
@@ -1,2 +1,3 @@
DIST highlight-3.17.tar.bz2 617834 SHA256 87ca5907943da25c756407d35ea0df8eb7762f3e32544201da27555c8eadb301 SHA512 27d5391339e80b616146489e97f63bca336f18b26c2ff5b94ae5bf183d3d1cdbfba202ab36d8eac86dee98ff49c6cc6c41dcf31860f0277f0327688e622d954e WHIRLPOOL 53ee5a4c58021f2a395d1d2e29090a43b06f3ad4ccad4461843f5a1eedebabe5ff33d2ac0c97c9d1ea496023c3acfe9eb30ff4d9d119a0eae4173ea1f9352cc3
DIST highlight-3.31.tar.bz2 628481 SHA256 c78cdce3c8133736c3bc2f931d34cb69c09e043c9ce681251e26a9f9b19c4c6d SHA512 dc42e03779300abfb0f69f9d47bc9afa08f20a80bf9b5e88e1de464f35ff774ae7f341c2ddb23e487971f06e256119131827ccf038b976e1af1d239d04a445a5 WHIRLPOOL d1edc9ccf93b8ba85bab4aeef20dbe6bb693b8f3e64011d0b21346ecdcd196d246841a36512447e3be21099640e6b9ae7f09c203233d790515c61cd71491df7b
+DIST highlight-3.32.tar.bz2 622414 SHA256 c54e495319b5b0781a672615763978d5300b3065fa4e02ec9c69b0cafe930c9d SHA512 0a9270371df31c0bca6e3c012fe5ef638e38ae696efe2dfc0ae58a64fe0de42e6c88ddd7455f699417a604f497906c84c741217e46872cb7deebc75b7b47c6e3 WHIRLPOOL 5114545c5c0e43620e67fefc5b5d2f592ea244dea4c11b4a449c406a0d91b629628f1504a46c707278c2ba4c706a6349b6bc7a2e0e10145ee3824e7d7dfc1c7f
diff --git a/app-text/highlight/highlight-3.32.ebuild b/app-text/highlight/highlight-3.32.ebuild
new file mode 100644
index 000000000000..26824798250a
--- /dev/null
+++ b/app-text/highlight/highlight-3.32.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs qt4-r2 flag-o-matic
+
+DESCRIPTION="converts source code to formatted text ((X)HTML, RTF, (La)TeX, XSL-FO, XML) with syntax highlight"
+HOMEPAGE="http://www.andre-simon.de/"
+SRC_URI="http://www.andre-simon.de/zip/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="examples qt4"
+
+RDEPEND="dev-lang/lua:0=
+ qt4? (
+ dev-qt/qtgui:4
+ dev-qt/qtcore:4
+ )"
+DEPEND="${RDEPEND}
+ dev-libs/boost
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
+ src/core/datadir.cpp || die
+
+ if has_version '<dev-lang/lua-5.2' ; then
+ sed -i 's/-DUSE_LUA52//' src/makefile || die
+ fi
+}
+
+src_compile() {
+ myhlopts=(
+ "CXX=$(tc-getCXX)"
+ "AR=$(tc-getAR)"
+ "LDFLAGS=${LDFLAGS}"
+ "CFLAGS=${CXXFLAGS} -DNDEBUG -std=c++11"
+ "DESTDIR=${D}"
+ "PREFIX=${EPREFIX}/usr"
+ "HL_CONFIG_DIR=${EPREFIX}/etc/highlight/"
+ "HL_DATA_DIR=${EPREFIX}/usr/share/highlight/"
+ "doc_dir=${EPREFIX}/usr/share/doc/${PF}/"
+ "conf_dir=${EPREFIX}/etc/highlight/"
+ )
+ emake -f makefile "${myhlopts[@]}"
+ if use qt4 ; then
+ cd src/gui-qt
+ eqmake4 'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
+ emake
+ fi
+}
+
+src_install() {
+ emake -f makefile "${myhlopts[@]}" install
+ use qt4 && emake -f makefile "${myhlopts[@]}" install-gui
+
+ if use examples ; then
+ docompress -x /usr/share/doc/${PF}/examples
+ else
+ rm -rf "${ED}"/usr/share/doc/${PF}/examples
+ fi
+}