public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/
Date: Fri, 11 Sep 2020 19:40:51 +0000 (UTC)	[thread overview]
Message-ID: <1599853135.504289cf7fdfcb646cbaac6cf5c40866a391fd33.whissi@gentoo> (raw)

commit:     504289cf7fdfcb646cbaac6cf5c40866a391fd33
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 11 18:16:59 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Sep 11 19:38:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=504289cf

app-text/ghostscript-gpl: bump to v9.53.0

TIFF support is no longer optional [Link 1].

Link 1: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3ff82b33f24ed54c2d3bb88ec31da7d2f9fd2765
Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 app-text/ghostscript-gpl/Manifest                  |   2 +
 .../ghostscript-gpl/ghostscript-gpl-9.53.0.ebuild  | 189 +++++++++++++++++++++
 2 files changed, 191 insertions(+)

diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest
index 9f440620d33..829de82eead 100644
--- a/app-text/ghostscript-gpl/Manifest
+++ b/app-text/ghostscript-gpl/Manifest
@@ -1,2 +1,4 @@
 DIST ghostscript-9.52.tar.xz 39711040 BLAKE2B 317042ae7e2bfdeded2ae9d9a1bd1521422d1ce1dd6b9b2cdedf4c503cce1285684d5329663dc8ee7263591761c33254827d16b1a93f8c10aad4baab1d859f93 SHA512 4c4a33884e1138bad553eee61fac1a72158297ad5c2ce46a4b36150848dea8158affaf2b902f4ff03e4f72ebc8154c198b618112624f409230a610b7648faa67
+DIST ghostscript-9.53.0.tar.xz 41358720 BLAKE2B 9a8b5872dc799f14759033685c37890f2da28450b1e115fcc63a2a920bb22bfc02db078d3f39dc62778da2a2518b82c2fc91f349486e83914c88c70d1e15d7e8 SHA512 fa594ef99e58257074b651e4d078bd1025f7bc2c435cd2a5454ba59c2a98cc82e93339ccd1eaa4fe624275165aacefeabc6f8336476027946f56aeb02e93da30
 DIST ghostscript-gpl-9.52-patchset-01.tar.xz 3292 BLAKE2B b6ac4f06c149301b07f57a5dd1f4507cc1e6d17ea60132b64177972ca58a29b2f6ff2f034b20b8ac083b60ea999f50ff75b74f86eec0cd73179741ed8a1486a8 SHA512 2498c5f396807a282727a7a9bd678e2008a1e4112722745aab48a12601661b08557c5d49f0a5ee67fb636f8c2b00c737640e894523b904ef3600f66d107999cb
+DIST ghostscript-gpl-9.53-patchset-01.tar.xz 2340 BLAKE2B 55d82c88f1b57c084318839e1382ffa112461d074411b1f6586a5a9ace37772b144abdda9f742defd077ce937df590d63bd7a2306bad52438949d1036bb7900c SHA512 ab58485df9152bb32c6f0eb25bd45689089bd17ffb0323c54e1977c5f810ec5eb09f358637251c428591749bfb42c6f8489c74d4bd0a7ae5d696eb2346503c44

diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.53.0.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.0.ebuild
new file mode 100644
index 00000000000..0d3acf4a9d1
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-9.53.0.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic toolchain-funcs
+
+DESCRIPTION="Interpreter for the PostScript language and PDF"
+HOMEPAGE="https://ghostscript.com/"
+
+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.53-patchset-01.tar.xz"
+
+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/~whissi/dist/ghostscript-gpl/${MY_PATCHSET}"
+fi
+
+LICENSE="AGPL-3 CPL-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+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:0=
+	>=media-libs/openjpeg-2.1.0:2=
+	>=media-libs/tiff-4.0.1:0=
+	>=sys-libs/zlib-1.2.7
+	virtual/jpeg:0
+	cups? ( >=net-print/cups-1.3.8 )
+	dbus? ( sys-apps/dbus )
+	gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) )
+	unicode? ( net-dns/libidn:0= )
+	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/master/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/${PVM}/$(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 \
+		"${EPREFIX}"/usr/share/poppler/cMap/Adobe-CNS1 \
+		"${EPREFIX}"/usr/share/poppler/cMap/Adobe-GB1 \
+		"${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan1 \
+		"${EPREFIX}"/usr/share/poppler/cMap/Adobe-Japan2 \
+		"${EPREFIX}"/usr/share/poppler/cMap/Adobe-Korea1
+	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 \
+		--without-luratech \
+		$(use_enable cups) \
+		$(use_enable dbus) \
+		$(use_enable gtk) \
+		$(use_with cups pdftoraster) \
+		$(use_with unicode libidn) \
+		$(use_with X x)
+
+	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/${PVM}/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:[~2020-09-11 19:40 UTC|newest]

Thread overview: 210+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11 19:40 Thomas Deutschmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-12 13:24 [gentoo-commits] repo/gentoo:master commit in: app-text/ghostscript-gpl/ 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
2022-04-17 12:09 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-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=1599853135.504289cf7fdfcb646cbaac6cf5c40866a391fd33.whissi@gentoo \
    --to=whissi@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