summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2016-08-21 08:48:46 +0200
committerAlexis Ballier <aballier@gentoo.org>2016-08-21 09:09:11 +0200
commit8a5ba8a82e24596ebc1f4e335675177576e1bc53 (patch)
tree6bcf7e54d94753cc1eafbcc7fe5457817c0b6678 /app-text
parentdev-lang/erlang: remove some more old versions (diff)
downloadgentoo-8a5ba8a82e24596ebc1f4e335675177576e1bc53.tar.gz
gentoo-8a5ba8a82e24596ebc1f4e335675177576e1bc53.tar.bz2
gentoo-8a5ba8a82e24596ebc1f4e335675177576e1bc53.zip
app-text/highlight: bump to 3.31
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-text')
-rw-r--r--app-text/highlight/Manifest1
-rw-r--r--app-text/highlight/highlight-3.31.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest
index f0875d5456b5..d0f3feaea79d 100644
--- a/app-text/highlight/Manifest
+++ b/app-text/highlight/Manifest
@@ -3,3 +3,4 @@ DIST highlight-3.25.tar.bz2 626492 SHA256 d8a9b8989c8b4108de0a76ceb585a5777ab308
DIST highlight-3.27.tar.bz2 620054 SHA256 9d0aa72d434fa22acde50ceafb165efcd03799335396b24b134a5632387cf7b0 SHA512 171bf90c07fccfc00c8fac6328c84703642a43e7291d6e32fabd3f6d99793b8cbbe9bbdcbcf3054868725f01fac0ed30902bd30f231bc31a98d56b29f9acefb3 WHIRLPOOL 6d3c93756c78109ffee69080bf4f5e414e1808ad06854f84816352206314df8212c89f5b71234f8f33bf5693ca749c23abad88630e0eda4b63bc25466fc70583
DIST highlight-3.28.tar.bz2 622161 SHA256 36364b6d906148dac04426a0c892fe2343e5e2c752316666589f8dff741ce7cd SHA512 f0d5d9b4635da5fcf75ba5fd11cbb308c0e8c00b8bdaff5769b7e0c2756d8e0b34b46299eaf4396b99bba69562bec96757342e0187abcf7a52277e37dff9b1fd WHIRLPOOL eb7ed0ff8f29b1fb23b14f1cb5745d562c7778a1bcd69a30e70b9e7c5f2572549d10119d128378107fb12a29803c04c1691b8c690d4ca931817b276125a7b934
DIST highlight-3.29.tar.bz2 670624 SHA256 76cc769d98778985235c0b7d1345cff78c99f597b51edd4e9be7d3fc0160bf92 SHA512 e17d780741ab64fbcf174100db3890dc1b8d5c41494901e1c01f1039177baabaa1fefeb72d30afa8723cb84f2cbb873378afcdfe8e8beba2e845c6abcec14ac9 WHIRLPOOL 2c5fb2711872f703398dd7b154f3d03f36cec24b11360c329368c8e9a5e5ef42913d687f46f18cdefc0d870149e918ef5c47b7441702766808420adcadd21fb8
+DIST highlight-3.31.tar.bz2 628481 SHA256 c78cdce3c8133736c3bc2f931d34cb69c09e043c9ce681251e26a9f9b19c4c6d SHA512 dc42e03779300abfb0f69f9d47bc9afa08f20a80bf9b5e88e1de464f35ff774ae7f341c2ddb23e487971f06e256119131827ccf038b976e1af1d239d04a445a5 WHIRLPOOL d1edc9ccf93b8ba85bab4aeef20dbe6bb693b8f3e64011d0b21346ecdcd196d246841a36512447e3be21099640e6b9ae7f09c203233d790515c61cd71491df7b
diff --git a/app-text/highlight/highlight-3.31.ebuild b/app-text/highlight/highlight-3.31.ebuild
new file mode 100644
index 000000000000..26824798250a
--- /dev/null
+++ b/app-text/highlight/highlight-3.31.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
+}