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/ghostscript-gpl/
Date: Sun, 17 Apr 2022 12:09:10 +0000 (UTC)	[thread overview]
Message-ID: <1650197339.463ee510db265bbd373aadce60112eca3d062c8d.sam@gentoo> (raw)

commit:     463ee510db265bbd373aadce60112eca3d062c8d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 12:06:58 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 12:08:59 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=463ee510

app-text/ghostscript-gpl: add 9.56.1

(Done the font bit anyway for 502566).

Closes: https://bugs.gentoo.org/820164
Bug: https://bugs.gentoo.org/784173
Bug: https://bugs.gentoo.org/502566
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/ghostscript-gpl/Manifest                  |   2 +
 .../ghostscript-gpl/ghostscript-gpl-9.56.1.ebuild  | 180 +++++++++++++++++++++
 2 files changed, 182 insertions(+)

diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
index 6458096e7f7b..31c9cc0c5b7e 100644
--- a/app-text/ghostscript-gpl/Manifest
+++ b/app-text/ghostscript-gpl/Manifest
@@ -1,2 +1,4 @@
 DIST ghostscript-9.55.0.tar.xz 67417724 BLAKE2B 87827856aa60c2c4a4ed209bc4203a837107df0404af036a48e5baa23fccfc945a97fe328a80b15c7357fc71acb82721d4b96e5f726d8c9d836fee031916aef7 SHA512 42c7e05ba72e9fdd626c5412187b13fc3c9459cae57dfe49ddd3011bf4e2cbd10bc88f09068a9f777c2ec6ae881cd737fd700ab62ec5108f2aca69152588f38e
+DIST ghostscript-9.56.1.tar.xz 62589232 BLAKE2B c0457c98e3f13047d9015d9d1415e2935e142d172aa8c560e68250a4110ccb52167988af70e63d86fc3f462a5d521ac45f7b758cb8d1492670930d9b2dc2e196 SHA512 fe5a5103c081dd87cf8b3e0bbbd0df004c0e4e04e41bded7c70372916e6e26249a0e8fa434b561292964c5f3820ee6c60ef1557827a6efb5676012ccb73ded85
 DIST ghostscript-gpl-9.55-patchset-01.tar.xz 2940 BLAKE2B 450498f0bd191d5936de1c2bdff659f075c39f7f7fefaf85b438f51967c4a8c294c6c887b36d5c0429d3677fb06e171e77da4b81ec911efea96df5b107d489dc SHA512 87411e68a078f77171128392962a9cd7a639bf6082447c658a50017cbf3f4e3ebce63af46eb9befdf2c1317de3a7a17e389f4de6e3aeae83d519b1c7b36de3c8
+DIST ghostscript-gpl-9.56.1-patchset-01.tar.xz 2960 BLAKE2B c43f00dce6d1aada40c8e628a1032afe1bf9789b3ad69d9dac2ae94ba040a380c01884173f0ec05ba59240421dc5a53cae45adbbb13dccc9c366b1a6dea7794f SHA512 a444c687ab0f2c3f945f6854991799c2aeca3c410eba4bc53ad7bcc68b0ba8d187c09baebabb6581144781d35b4f2d4e29ff625ca55b0f640a033ba27e993f30

diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.56.1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.56.1.ebuild
new file mode 100644
index 000000000000..f5020bdddc00
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.56.1.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+MY_PN=${PN/-gpl}
+MY_P="${MY_PN}-${PV/_}"
+PVM=$(ver_cut 1-2)
+PVM_S=$(ver_rs 1-2 "")
+
+MY_PATCHSET="ghostscript-gpl-9.56.1-patchset-01.tar.xz"
+
+DESCRIPTION="Interpreter for the PostScript language and PDF"
+HOMEPAGE="https://ghostscript.com/"
+SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz"
+if [[ -n "${MY_PATCHSET}" ]] ; then
+	SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${MY_PATCHSET}"
+	SRC_URI+=" https://dev.gentoo.org/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}"
+fi
+
+LICENSE="AGPL-3 CPL-1.0"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="cups dbus gtk l10n_de static-libs unicode X"
+
+LANGS="ja ko zh-CN zh-TW"
+for X in ${LANGS} ; do
+	IUSE="${IUSE} l10n_${X}"
+done
+
+DEPEND="app-text/libpaper
+	media-libs/fontconfig
+	>=media-libs/freetype-2.4.9:2=
+	>=media-libs/jbig2dec-0.19:=
+	>=media-libs/lcms-2.6:2
+	>=media-libs/libpng-1.6.2:=
+	media-libs/libjpeg-turbo:=
+	>=media-libs/openjpeg-2.1.0:2=
+	>=media-libs/tiff-4.0.1:=
+	>=sys-libs/zlib-1.2.7
+	cups? ( >=net-print/cups-1.3.8 )
+	dbus? ( sys-apps/dbus )
+	gtk? ( x11-libs/gtk+:3 )
+	unicode? ( net-dns/libidn:= )
+	X? ( x11-libs/libXt x11-libs/libXext )"
+BDEPEND="virtual/pkgconfig"
+RDEPEND="${DEPEND}
+	app-text/poppler-data
+	>=media-fonts/urw-fonts-2.4.9
+	l10n_ja? ( media-fonts/kochi-substitute )
+	l10n_ko? ( media-fonts/baekmuk-fonts )
+	l10n_zh-CN? ( media-fonts/arphicfonts )
+	l10n_zh-TW? ( media-fonts/arphicfonts )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	if [[ -n "${MY_PATCHSET}" ]] ; then
+		# apply various patches, many borrowed from Fedora
+		# https://src.fedoraproject.org/rpms/ghostscript
+		# and Debian
+		# https://salsa.debian.org/printing-team/ghostscript/-/tree/debian/latest/debian/patches
+		eapply "${WORKDIR}/patches/"*.patch
+	fi
+
+	default
+
+	# remove internal copies of various libraries
+	rm -r cups/libs || die
+	rm -r freetype || die
+	rm -r jbig2dec || die
+	rm -r jpeg || die
+	rm -r lcms2mt || die
+	rm -r libpng || die
+	rm -r tiff || die
+	rm -r zlib || die
+	rm -r openjpeg || die
+	# remove internal CMaps (CMaps from poppler-data are used instead)
+	rm -r Resource/CMap || die
+
+	if ! use gtk ; then
+		sed -e "s:\$(GSSOX)::" \
+			-e "s:.*\$(GSSOX_XENAME)$::" \
+			-i base/unix-dll.mak || die "sed failed"
+	fi
+
+	# Force the include dirs to a neutral location.
+	sed -e "/^ZLIBDIR=/s:=.*:=${T}:" \
+		-i configure.ac || die
+	# Some files depend on zlib.h directly.  Redirect them. #573248
+	# Also make sure to not define OPJ_STATIC to avoid linker errors due to
+	# hidden symbols (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203327#c1)
+	sed -e '/^zlib_h/s:=.*:=:' \
+		-e 's|-DOPJ_STATIC ||' \
+		-i base/lib.mak || die
+
+	# search path fix
+	# put LDFLAGS after BINDIR, bug #383447
+	sed -e "s:\$\(gsdatadir\)/lib:@datarootdir@/ghostscript/${PV}/$(get_libdir):" \
+		-e "s:exdir=.*:exdir=@datarootdir@/doc/${PF}/examples:" \
+		-e "s:docdir=.*:docdir=@datarootdir@/doc/${PF}/html:" \
+		-e "s:GS_DOCDIR=.*:GS_DOCDIR=@datarootdir@/doc/${PF}/html:" \
+		-e 's:-L$(BINDIR):& $(LDFLAGS):g' \
+		-i Makefile.in base/*.mak || die "sed failed"
+
+	# remove incorrect symlink, bug 590384
+	rm ijs/ltmain.sh || die
+	eautoreconf
+
+	cd ijs || die
+	eautoreconf
+}
+
+src_configure() {
+	local FONTPATH
+	for path in \
+		"${EPREFIX}"/usr/share/fonts/urw-fonts \
+		"${EPREFIX}"/usr/share/fonts/Type1 \
+		"${EPREFIX}"/usr/share/fonts
+	do
+		FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path"
+	done
+
+	PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
+	econf \
+		--enable-dynamic \
+		--enable-freetype \
+		--enable-fontconfig \
+		--enable-openjpeg \
+		--disable-compile-inits \
+		--with-drivers=ALL \
+		--with-fontpath="$FONTPATH" \
+		--with-ijs \
+		--with-jbig2dec \
+		--with-libpaper \
+		--with-system-libtiff \
+		$(use_enable cups) \
+		$(use_enable dbus) \
+		$(use_enable gtk) \
+		$(use_with cups pdftoraster) \
+		$(use_with unicode libidn) \
+		$(use_with X x) \
+		DARWIN_LDFLAGS_SO_PREFIX="${EPREFIX}/usr/lib/"
+
+	cd "${S}/ijs" || die
+	econf \
+		--enable-shared \
+		$(use_enable static-libs static)
+}
+
+src_compile() {
+	emake so all
+
+	cd ijs || die
+	emake
+}
+
+src_install() {
+	emake DESTDIR="${D}" install-so install
+
+	# move gsc to gs, bug #343447
+	# gsc collides with gambit, bug #253064
+	mv -f "${ED}"/usr/bin/{gsc,gs} || die
+
+	cd "${S}/ijs" || die
+	emake DESTDIR="${D}" install
+
+	# install the CMaps from poppler-data properly, bug #409361
+	dosym ../../../poppler/cMaps "/usr/share/ghostscript/${PV}/Resource/CMap"
+
+	if ! use static-libs; then
+		find "${ED}" -name '*.la' -delete || die
+	fi
+
+	if ! use l10n_de; then
+		rm -r "${ED}"/usr/share/man/de || die
+	fi
+}


             reply	other threads:[~2022-04-17 12:09 UTC|newest]

Thread overview: 225+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-17 12:09 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-13 10:10 [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/ Sam James
2025-03-08 11:07 Sam James
2024-12-16  7:51 Arthur Zamarin
2024-12-14 19:30 Arthur Zamarin
2024-12-12 19:48 Arthur Zamarin
2024-12-12 19:31 Arthur Zamarin
2024-12-12 12:44 Arthur Zamarin
2024-12-12 12:44 Arthur Zamarin
2024-12-12 12:44 Arthur Zamarin
2024-12-12 11:09 Sam James
2024-12-12 11:08 Sam James
2024-12-08  7:12 Sam James
2024-12-08  7:10 Sam James
2024-11-26  6:49 Sam James
2024-11-01  7:13 Sam James
2024-07-12 13:24 Sam James
2024-07-01 23:20 Sam James
2024-07-01 23:15 Sam James
2024-07-01 23:14 Sam James
2024-07-01 23:14 Sam James
2024-07-01 23:14 Sam James
2024-07-01 23:14 Sam James
2024-06-18  5:09 Sam James
2024-05-18  4:49 Sam James
2024-03-12 18:18 Sam James
2024-03-04 11:24 Sam James
2024-02-12  2:27 John Helmert III
2023-12-19 17:01 Arthur Zamarin
2023-12-18  9:48 Arthur Zamarin
2023-12-18  9:48 Arthur Zamarin
2023-12-18  9:01 Arthur Zamarin
2023-12-18  9:01 Arthur Zamarin
2023-12-18  9:01 Arthur Zamarin
2023-12-05 19:56 Arthur Zamarin
2023-12-05 19:56 Arthur Zamarin
2023-11-30  2:08 Sam James
2023-10-03 14:15 Sam James
2023-09-27 19:22 Arthur Zamarin
2023-09-27  5:06 Sam James
2023-09-27  5:03 Sam James
2023-09-27  4:39 Sam James
2023-09-27  4:27 Sam James
2023-09-17  5:28 Sam James
2023-09-14  3:41 Sam James
2023-07-15  8:19 Arthur Zamarin
2023-07-15  8:19 Arthur Zamarin
2023-07-14  0:42 Sam James
2023-07-14  0:42 Sam James
2023-07-14  0:42 Sam James
2023-07-14  0:42 Sam James
2023-06-23 20:28 Sam James
2023-04-25  3:59 Sam James
2023-04-25  3:23 Sam James
2023-04-25  3:23 Sam James
2023-04-16 23:23 Sam James
2023-04-13  2:57 Sam James
2023-04-13  2:57 Sam James
2023-04-13  2:16 Sam James
2023-04-13  2:11 Sam James
2023-04-13  1:57 Sam James
2023-03-30 10:53 Sam James
2023-03-23  4:03 Sam James
2023-03-15  3:40 Sam James
2022-12-18  7:48 Sam James
2022-12-18  7:10 Sam James
2022-12-18  7:10 Sam James
2022-12-09 21:27 Sam James
2022-12-07 19:08 Sam James
2022-11-25 12:04 Arthur Zamarin
2022-11-25 11:21 Arthur Zamarin
2022-11-25 10:08 Arthur Zamarin
2022-11-25  7:05 Sam James
2022-11-25  6:33 Arthur Zamarin
2022-11-25  6:02 Sam James
2022-11-25  5:33 Sam James
2022-11-25  5:33 Sam James
2022-11-18 19:42 Arthur Zamarin
2022-11-18 19:42 Arthur Zamarin
2022-10-20 19:06 Arthur Zamarin
2022-10-15  7:06 Jakov Smolić
2022-10-15  7:06 Jakov Smolić
2022-10-14 21:01 Arthur Zamarin
2022-10-13 23:19 Sam James
2022-10-13 23:01 Sam James
2022-10-04  9:09 Sam James
2022-10-02  3:56 Sam James
2022-10-02  3:15 Sam James
2022-10-01  6:56 Sam James
2022-09-15 13:20 Sam James
2022-06-11 21:28 Sam James
2022-06-11 21:28 Sam James
2022-05-17 12:48 WANG Xuerui
2022-04-17 12:20 Sam James
2021-12-07 20:23 Sam James
2021-12-06 15:23 Sam James
2021-12-06 15:20 Sam James
2021-12-06  8:03 Agostino Sarubbo
2021-12-06  0:31 Sam James
2021-12-05 18:21 Arthur Zamarin
2021-12-05 13:55 Jakov Smolić
2021-10-21 18:08 Thomas Deutschmann
2021-10-20 16:41 Thomas Deutschmann
2021-10-20  6:58 Sam James
2021-10-01 23:42 Sam James
2021-09-26  5:01 Sam James
2021-09-25  3:05 Sam James
2021-09-24  6:59 Agostino Sarubbo
2021-09-23  6:40 Agostino Sarubbo
2021-09-22  6:55 Agostino Sarubbo
2021-09-18  4:51 Sam James
2021-09-16 21:28 Sam James
2021-09-13  0:56 Sam James
2021-03-31 22:13 Thomas Deutschmann
2021-03-31 22:13 Thomas Deutschmann
2021-01-27 15:10 Thomas Deutschmann
2021-01-27 15:10 Thomas Deutschmann
2021-01-27 15:10 Thomas Deutschmann
2021-01-26  0:06 Sam James
2020-12-22 21:32 Sam James
2020-12-22 21:27 Sam James
2020-12-21  9:41 Sergei Trofimovich
2020-12-20 16:40 Thomas Deutschmann
2020-12-18 20:49 Sergei Trofimovich
2020-12-18 10:16 Sergei Trofimovich
2020-12-17 16:41 Agostino Sarubbo
2020-12-16 21:24 Sergei Trofimovich
2020-12-14 15:03 Thomas Deutschmann
2020-12-14 15:03 Thomas Deutschmann
2020-12-01  8:25 Fabian Groffen
2020-10-11 20:45 Thomas Deutschmann
2020-10-11 20:45 Thomas Deutschmann
2020-10-01 11:54 Thomas Deutschmann
2020-09-26  9:59 Thomas Deutschmann
2020-09-16 19:23 Thomas Deutschmann
2020-09-11 19:40 Thomas Deutschmann
2020-08-29 22:12 Aaron Bauman
2020-08-29 18:21 Sam James
2020-08-18  5:52 Sam James
2020-08-17 17:03 Sergei Trofimovich
2020-08-16 14:47 Agostino Sarubbo
2020-08-15  3:06 Sam James
2020-08-14 22:58 Thomas Deutschmann
2020-08-14 21:50 Sam James
2020-08-14 17:45 Sam James
2020-08-14 17:31 Sam James
2020-08-14 17:24 Sam James
2020-08-13 10:26 Thomas Deutschmann
2020-03-28 21:54 Andreas K. Hüttel
2019-11-17  7:21 Matt Turner
2019-11-13 13:17 Agostino Sarubbo
2019-11-08  8:35 Mikle Kolyada
2019-11-07  0:00 Aaron Bauman
2019-11-01 10:32 Mikle Kolyada
2019-10-28  7:43 Agostino Sarubbo
2019-10-27 19:25 Sergei Trofimovich
2019-10-26 15:16 Agostino Sarubbo
2019-10-10  1:14 Thomas Deutschmann
2019-10-10  1:14 Thomas Deutschmann
2019-10-07  0:35 Thomas Deutschmann
2019-04-04 19:22 Aaron Bauman
2018-12-30 22:16 Matt Turner
2018-11-25 10:11 Mikle Kolyada
2018-11-25 10:11 Mikle Kolyada
2018-11-25 10:09 Mikle Kolyada
2018-11-24 16:00 Mart Raudsepp
2018-11-24 13:01 Sergei Trofimovich
2018-11-24 10:59 Sergei Trofimovich
2018-11-24 10:49 Sergei Trofimovich
2018-11-24 10:45 Sergei Trofimovich
2018-11-23 16:35 Thomas Deutschmann
2018-11-23  7:24 Mikle Kolyada
2018-11-23  0:21 Andreas K. Hüttel
2018-11-23  0:21 Andreas K. Hüttel
2018-11-06  7:31 Jeroen Roovers
2018-11-04 20:33 Andreas Sturmlechner
2018-10-29  5:39 Markus Meier
2018-10-14 16:16 Mikle Kolyada
2018-10-06 16:48 Matt Turner
2018-10-02 18:32 Sergei Trofimovich
2018-10-02 10:58 Tobias Klausmann
2018-10-02  9:01 Mikle Kolyada
2018-09-30 22:21 Mart Raudsepp
2018-09-30 21:38 Sergei Trofimovich
2018-09-18 23:03 Andreas Hüttel
2018-06-12 15:17 Mikle Kolyada
2018-06-03 13:49 Aaron Bauman
2018-05-16 19:33 Lars Wendler
2018-05-06 13:20 Mart Raudsepp
2017-10-08 20:31 Aaron Bauman
2017-10-03 15:08 Sergei Trofimovich
2017-08-24 15:53 Michał Górny
2017-06-28 20:54 Sergei Trofimovich
2017-06-23  4:38 Markus Meier
2017-06-21 12:17 Agostino Sarubbo
2017-06-18 14:01 Agostino Sarubbo
2017-06-17 17:24 Agostino Sarubbo
2017-06-09 22:52 Andreas Hüttel
2017-02-21 12:44 Andreas Hüttel
2017-02-18 18:34 Andreas Hüttel
2017-02-18 12:05 Jeroen Roovers
     [not found] <1487371622.2f1ee42f1467fa3e132ece7b4d2aede8f1c45afb.xmw@gentoo>
2017-02-17 22:47 ` Michael Weber
2017-02-17 20:35 Andreas Hüttel
2017-02-17 20:22 Andreas Hüttel
2017-02-15 17:31 Markus Meier
2017-02-15 13:49 Tobias Klausmann
2017-02-15  0:42 Andreas Hüttel
2017-02-15  0:42 Andreas Hüttel
2017-02-12 17:01 Agostino Sarubbo
2017-02-12 14:48 Agostino Sarubbo
2017-01-28 22:48 Andreas Hüttel
2017-01-28 22:48 Andreas Hüttel
2017-01-28 13:12 Andreas Hüttel
2017-01-28 13:08 Andreas Hüttel
2017-01-28 13:08 Andreas Hüttel
2016-09-22  5:59 Benda XU
2016-07-01 17:38 Ulrich Müller
2016-06-30 19:59 Patrice Clement
2016-06-25 19:32 Ulrich Müller
2016-02-12 23:31 Mike Frysinger
2016-01-12  7:30 Mike Frysinger
2016-01-08 19:59 Mike Frysinger
2016-01-07  9:15 Mike Frysinger
2015-10-23  8:46 Justin Lecher
2015-10-19 20:04 Lars Wendler

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=1650197339.463ee510db265bbd373aadce60112eca3d062c8d.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