diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-06-30 10:29:01 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-06-30 10:29:51 +0200 |
commit | 5233824b43a3231b9eff105dbf63516c42edbed7 (patch) | |
tree | ab091b8c06c0016e46c840e4a562dd57104d23ca /app-text/highlight | |
parent | media-sound/mpg123: bump to 1.23.6 (diff) | |
download | gentoo-5233824b43a3231b9eff105dbf63516c42edbed7.tar.gz gentoo-5233824b43a3231b9eff105dbf63516c42edbed7.tar.bz2 gentoo-5233824b43a3231b9eff105dbf63516c42edbed7.zip |
app-text/highlight: bump to 3.29
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-text/highlight')
-rw-r--r-- | app-text/highlight/Manifest | 1 | ||||
-rw-r--r-- | app-text/highlight/highlight-3.29.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest index 60d6f4616d96..f0875d5456b5 100644 --- a/app-text/highlight/Manifest +++ b/app-text/highlight/Manifest @@ -2,3 +2,4 @@ DIST highlight-3.17.tar.bz2 617834 SHA256 87ca5907943da25c756407d35ea0df8eb7762f DIST highlight-3.25.tar.bz2 626492 SHA256 d8a9b8989c8b4108de0a76ceb585a5777ab308a339a667a9b05ee3d059dade26 SHA512 c0249283e7c26b565170c4686fb28ddd0565716ddcd38a52cbfde03051558f4c1baf7b2605e33e1799afb7dfb79b053fffa70827d5d8dcaf42a344076d26fb11 WHIRLPOOL d2f8ae06a9b48dd88432d9550d6e456f3a3177194af72ee26023ea110046a55ea9031104e9a397bfd316d3b4c0a1f557cefaa73165bc54308725f71a7e89f1e6 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 diff --git a/app-text/highlight/highlight-3.29.ebuild b/app-text/highlight/highlight-3.29.ebuild new file mode 100644 index 000000000000..26824798250a --- /dev/null +++ b/app-text/highlight/highlight-3.29.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 +} |