public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/highlight/
Date: Fri, 20 Oct 2023 00:51:34 +0000 (UTC)	[thread overview]
Message-ID: <1697763057.31cf192b13e4c7ef58dda94e3a713a3bb7a8457a.sam@gentoo> (raw)

commit:     31cf192b13e4c7ef58dda94e3a713a3bb7a8457a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 20 00:15:48 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Oct 20 00:50:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31cf192b

app-text/highlight: add 4.9

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/highlight/Manifest             |   2 +
 app-text/highlight/highlight-4.9.ebuild | 111 ++++++++++++++++++++++++++++++++
 2 files changed, 113 insertions(+)

diff --git a/app-text/highlight/Manifest b/app-text/highlight/Manifest
index 070203ad8228..f5802d9c528c 100644
--- a/app-text/highlight/Manifest
+++ b/app-text/highlight/Manifest
@@ -2,3 +2,5 @@ DIST highlight-4.1.tar.bz2 1469115 BLAKE2B 9ee4c61ea5ebdfd04c2bb341838cc66a755d5
 DIST highlight-4.6.tar.bz2 1488327 BLAKE2B 952171929aa021c80690b2ddcd5adba3b6c7e54425cfc851368b768a53c749e34495b0832d4ce5546b5bc68c0ea4e3b5bd6df4f379e02702fd3a497adc52d60b SHA512 0214f2141ecf2ab350368ff165dc5f58eb3a23b31142b9d1c443a35f8ea72b9e33770c2de185cd2e3645e298ad41ec1fd45db5ebf546da3144e1dc93da32b811
 DIST highlight-4.8.tar.bz2 1492966 BLAKE2B f0bc746cb671037c2a5f1557c6114c143448de8fe295f4b74d38daecc615bfb50e50b5f3f3ee488488f1bc52dc11b283f13cbaa956959946d2dcaca91a6ef804 SHA512 c04e94b2fdb1ebda37937a8bdcdb1bb5afe171a74ca58ddf40b1972bc62a07dc02d628bc962b1db654805a446f32da8d7af41a0c162476cf47a3535128ca6ace
 DIST highlight-4.8.tar.bz2.asc 488 BLAKE2B 466905e2a4b1b577feba593e2d6e855e09764cdb08ddbd5aa3b4c62c4b06bc19a013df16aa1dfc81d4e52765641d5f98615233609d7b4f039f6f8c6a929d345a SHA512 929c5b0a25a2f5a0b9204afb03b5456b2b62d07e519799602b06a0ad2d4bc1d9eac92965571732b0eaffe780904321ebffb31cdf61b6fe644ecc39ddb983c7b8
+DIST highlight-4.9.tar.bz2 1498248 BLAKE2B 09ff0a5cc81da45270a8382dc6b2a2d3b44d1f084e661fae4a3d39d2ded9af6c77b1fb0d51d32c59f22ccba1612ab7faf68b5e918dda70c9f2e25b29b5c44ecd SHA512 280abd98182c5b95f629ca126e8a59ca6bf6f9e301fc7678aa3e4cb37b714827dfdfab1e008c798e203c7408355be63e01e88f93eacfcf2c5fad95afc6e22112
+DIST highlight-4.9.tar.bz2.asc 488 BLAKE2B cbd3541f65ec714ff1fda17fb141aa19f53952634a2027819fdbf50f7cf781f875b76ebd9a82119347f17940d8200f856082dfff51ff994a71a2ece04d654764 SHA512 04c2aca4050cae0dde97340a1ebafd968526e2d811e4551e8895acca50613f7e5902e31d735a0da1427d69e85e152530776fa1b9f5896efe410d8f9437768298

diff --git a/app-text/highlight/highlight-4.9.ebuild b/app-text/highlight/highlight-4.9.ebuild
new file mode 100644
index 000000000000..d6dffaa6f8af
--- /dev/null
+++ b/app-text/highlight/highlight-4.9.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/andresimon.asc
+inherit lua-single qmake-utils toolchain-funcs verify-sig 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
+	verify-sig? ( http://www.andre-simon.de/zip/${P}.tar.bz2.asc )
+"
+
+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 )
+	verify-sig? ( sec-keys/openpgp-keys-andresimon )
+"
+
+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
+}


             reply	other threads:[~2023-10-20  0:51 UTC|newest]

Thread overview: 100+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-20  0:51 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-09 22:05 [gentoo-commits] repo/gentoo:master commit in: app-text/highlight/ Andreas Sturmlechner
2025-03-09 20:19 Sam James
2025-02-22 16:49 Sam James
2025-02-14  8:19 Sam James
2025-01-08 19:58 Andreas Sturmlechner
2024-12-31  9:08 Andreas Sturmlechner
2024-11-18 21:42 Andreas Sturmlechner
2024-08-26  7:04 Arthur Zamarin
2024-01-28 22:14 Sam James
2023-12-30  4:10 Sam James
2023-12-30  3:04 Sam James
2023-12-30  3:04 Sam James
2023-12-30  3:04 Sam James
2023-12-30  3:04 Sam James
2023-10-09 20:02 Sam James
2023-10-09  7:04 Sam James
2023-10-09  5:54 Sam James
2023-10-09  4:53 Sam James
2023-10-09  4:46 Sam James
2023-08-30  7:48 Sam James
2023-04-19 13:04 Pacho Ramos
2023-04-18  9:03 Sam James
2022-05-14  7:04 WANG Xuerui
2022-04-17 18:32 Sam James
2022-03-19 23:17 David Seifert
2021-09-27 21:44 James Le Cuirot
2021-08-01 18:27 Sam James
2021-07-28 11:28 Marek Szuba
2021-06-16 15:40 Sergei Trofimovich
2021-06-13 12:38 Sam James
2021-06-13 11:12 Sam James
2021-06-13 11:12 Sam James
2021-06-13 11:12 Sam James
2021-06-13 11:12 Sam James
2021-06-13 11:12 Sam James
2021-05-13 16:15 Sam James
2021-04-01 22:32 Sam James
2021-04-01 22:32 Sam James
2021-04-01 22:30 Sam James
2021-04-01 22:30 Sam James
2021-04-01 22:27 Sam James
2021-04-01 22:27 Sam James
2021-04-01 17:55 Sergei Trofimovich
2021-04-01 12:11 Thomas Deutschmann
2021-03-25 23:31 Conrad Kostecki
2021-02-21  4:03 Sam James
2021-02-21  4:03 Sam James
2021-02-09 13:47 Marek Szuba
2021-02-08 15:08 Sergei Trofimovich
2021-01-23 22:42 Sam James
2020-12-21 20:09 Sam James
2020-12-21  9:36 Sergei Trofimovich
2020-12-20 16:40 Thomas Deutschmann
2020-12-18 20:49 Sergei Trofimovich
2020-12-18 14:22 Sam James
2020-12-18 10:25 Sergei Trofimovich
2020-12-17 16:41 Agostino Sarubbo
2020-12-17  7:55 Sam James
2020-12-17  6:23 Sam James
2020-12-17  4:58 Sam James
2020-07-06 17:14 Robin H. Johnson
2020-06-28 20:44 Agostino Sarubbo
2020-06-28 20:40 Agostino Sarubbo
2020-06-28 20:37 Agostino Sarubbo
2020-06-28 20:33 Agostino Sarubbo
2020-06-28 20:30 Agostino Sarubbo
2020-06-28 20:27 Agostino Sarubbo
2020-06-28  7:49 Sergei Trofimovich
2020-06-28  7:49 Sergei Trofimovich
2020-06-27 20:41 Mart Raudsepp
2020-05-24 20:28 Andreas Sturmlechner
2018-07-01 14:01 Mikle Kolyada
2018-03-19 17:16 Andreas Sturmlechner
2018-03-19  9:28 Sergei Trofimovich
2018-03-15 20:17 Markus Meier
2018-03-08 21:26 Sergei Trofimovich
2018-03-05 21:31 Tobias Klausmann
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 11:39 Mart Raudsepp
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 10:20 Sergei Trofimovich
2018-03-04  9:13 Jason Zaman
2018-02-04 18:16 Andreas Sturmlechner
2018-02-04 17:41 Andreas Sturmlechner
2018-02-04 17:41 Andreas Sturmlechner
2017-06-27 14:21 Alexis Ballier
2017-03-07 12:43 Alexis Ballier
2017-02-18  9:54 David Seifert
2017-01-03 16:46 Alexis Ballier
2017-01-03 16:46 Alexis Ballier
2016-12-01 14:12 Alexis Ballier
2016-10-20 12:17 Alexis Ballier
2016-10-20 12:17 Alexis Ballier
2016-08-21  7:09 Alexis Ballier
2016-06-30  8:30 Alexis Ballier
2016-02-23 16:14 Alexis Ballier
2016-01-26  7:46 Alexis Ballier
2016-01-07  7:49 Alexis Ballier
2015-11-13  9:02 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1697763057.31cf192b13e4c7ef58dda94e3a713a3bb7a8457a.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox