summaryrefslogtreecommitdiff
path: root/app-text/highlight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-17 07:43:56 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-17 07:43:56 +0100
commitb978efa000250668b2befa4e2cc96e0afa137611 (patch)
tree0c561efed9b15c17a9d3ef926443f35c58dfb48c /app-text/highlight
parentfa5e8e92d94ea9de5d49a1f5ad19abf7272503d0 (diff)
gentoo auto-resync : 17:06:2023 - 07:43:56
Diffstat (limited to 'app-text/highlight')
-rw-r--r--app-text/highlight/Manifest2
-rw-r--r--app-text/highlight/highlight-4.6.ebuild107
2 files changed, 109 insertions, 0 deletions
diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest
index f1638af3b885..2bb250bfb8e2 100644
--- a/app-text/highlight/Manifest
+++ b/app-text/highlight/Manifest
@@ -1,4 +1,6 @@
AUX highlight-3.57-qt_libs_lua.patch 334 BLAKE2B 6cd387009986ef29f309dc52668f08c404ca7f744c8d1c6d1bb8ed47a392834f4ce9c8474397c4294fc40633501d52754caa0938ea84d9b050800a33db46e5cc SHA512 db298ed4a12e90c8745d7307fd916dd73f3fc62bd306fec279d9c38973e3556425ca7b90759b03e645983c35de298b3d28e80bdcde5ece94b480ee32d7742a18
DIST highlight-4.1.tar.bz2 1469115 BLAKE2B 9ee4c61ea5ebdfd04c2bb341838cc66a755d5deb6dfb5d863d22dbb86be9b5d08999f22bb184053126bdaf8858777eb2ac504fed8998dc51bd6e1cd64f911ad8 SHA512 6e3ba72b2109f1b33fcebd1a426a8d4b3e12ee224b8a2069e7aab1391473594ccf9b35303bca5ca1339d2ce42bc6db2d16c1da7b1cdd451f5fabe672ca388731
+DIST highlight-4.6.tar.bz2 1488327 BLAKE2B 952171929aa021c80690b2ddcd5adba3b6c7e54425cfc851368b768a53c749e34495b0832d4ce5546b5bc68c0ea4e3b5bd6df4f379e02702fd3a497adc52d60b SHA512 0214f2141ecf2ab350368ff165dc5f58eb3a23b31142b9d1c443a35f8ea72b9e33770c2de185cd2e3645e298ad41ec1fd45db5ebf546da3144e1dc93da32b811
EBUILD highlight-4.1.ebuild 2423 BLAKE2B 812355e2acd16abd03cc4a6d5555f24af630cce614ffeebc4e4e525916f62a9b51ec1269667d6bd00c744e63ff4b74dbd5cc020307cd24ce12ab6780f1147f94 SHA512 975b17328a8fbe9659c49bd69ea0a1eef4015fa2c70f03d08ce2c5a2dc76252285e5534ea0618d9c3b0da5c0f3dd65206496b4d429c88d7798be500aaff8139e
+EBUILD highlight-4.6.ebuild 2466 BLAKE2B 49d356dc265081ab2daa808016be4a9894038de25acfee2d58e12488c15b776ed09dd199161f9d6fbd09f0cbbf2283fb200835386fc4d19334b8b510523dbd70 SHA512 ca9540dbf379f752487f42bd7b052efd3304e2295a8b19bf186142ee6f44a5b15bf409e18d9626adfcc9cd4460989f90f31dce9a7761c92b673da99f09e9bd4a
MISC metadata.xml 331 BLAKE2B 3c864f08058c451342b7f7799f36e901f392207b36114dd123bb3faa59f04fe3b00d8e65cee4ad3bbbe44606bdafbd246c64d5fce03cd54fc64cd40cfde59788 SHA512 eb96ee44971855de0b12f9e230d58714acb54de1b0a814c0681f8c31124a5c3e39290e2fd17523b2b52b65efaf30f64580f00777a8e9c908779b582577897906
diff --git a/app-text/highlight/highlight-4.6.ebuild b/app-text/highlight/highlight-4.6.ebuild
new file mode 100644
index 000000000000..d6d49225f645
--- /dev/null
+++ b/app-text/highlight/highlight-4.6.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua-single qmake-utils toolchain-funcs xdg
+
+DESCRIPTION="Converts source code to formatted text (HTML, LaTeX, etc.) 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 ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="examples gui"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="
+ ${LUA_DEPS}
+ gui? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ dev-libs/boost
+"
+BDEPEND="
+ virtual/pkgconfig
+ gui? ( dev-qt/linguist-tools:5 )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-3.57-qt_libs_lua.patch
+)
+
+myhlopts=(
+ CXX="$(tc-getCXX)"
+ AR="$(tc-getAR)"
+ LDFLAGS="${LDFLAGS}"
+ CFLAGS="${CXXFLAGS} -DNDEBUG"
+ 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/"
+ examples_dir="${EPREFIX}/usr/share/doc/${PF}/extras"
+)
+
+src_prepare() {
+ default
+
+ # Disable man page compression
+ sed \
+ -e "/GZIP/d" \
+ -e "/COPYING/d" \
+ -i makefile || die
+
+ sed -e "/LSB_DOC_DIR/s:doc/${PN}:doc/${PF}:" \
+ -i src/core/datadir.cpp || die
+
+ sed -r -i \
+ -e "/^LUA_.*pkg-config/s,\<lua\>,${ELUA},g" \
+ "${S}"/extras/tcl/makefile \
+ "${S}"/extras/swig/makefile \
+ || die "Failed to set Lua implementation"
+
+ # We set it via eqmake5, otherwise it forces clang...
+ sed -e "s/QMAKE_CC/#QMAKE_CC/g" \
+ -e "s/QMAKE_CXX /#QMAKE_CXX /g" \
+ -i src/gui-qt/highlight.pro || die
+}
+
+src_configure() {
+ if use gui ; then
+ pushd src/gui-qt > /dev/null || die
+ eqmake5 \
+ 'DEFINES+=DATA_DIR=\\\"'"${EPREFIX}"'/usr/share/${PN}/\\\" CONFIG_DIR=\\\"'"${EPREFIX}"'/etc/${PN}/\\\" DOC_DIR=\\\"'"${EPREFIX}"'/usr/share/doc/${PF}/\\\"'
+ popd > /dev/null || die
+ fi
+}
+
+src_compile() {
+ emake -f makefile LUA_PKG_NAME="${ELUA}" "${myhlopts[@]}"
+ if use gui ; then
+ emake -C src/gui-qt
+ fi
+}
+
+src_install() {
+ emake -f makefile "${myhlopts[@]}" install
+
+ if use gui; then
+ emake -f makefile "${myhlopts[@]}" install-gui
+ docompress -x /usr/share/doc/${PF}/{ChangeLog,COPYING,README,README_PLUGINS}
+ fi
+
+ if ! use examples ; then
+ rm -r "${ED}"/usr/share/doc/${PF}/extras || die
+ fi
+}