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: Wed, 7 Dec 2022 19:08:20 +0000 (UTC) [thread overview]
Message-ID: <1670440080.b92cfcd38f2911fa1475cb56a920093eae75b72b.sam@gentoo> (raw)
commit: b92cfcd38f2911fa1475cb56a920093eae75b72b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 7 19:07:02 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 7 19:08:00 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b92cfcd3
app-text/ghostscript-gpl: don't build dynamic modules (10)
It breaks app-text/gv and upstream are clear it's not really a supported
configuration.
Upstream says they were only intended for debugging anyway.
Closes: https://bugs.gentoo.org/884707
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../ghostscript-gpl-10.0.0-r2.ebuild | 189 +++++++++++++++++++++
1 file changed, 189 insertions(+)
diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
new file mode 100644
index 000000000000..6001ee7799d5
--- /dev/null
+++ b/app-text/ghostscript-gpl/ghostscript-gpl-10.0.0-r2.ebuild
@@ -0,0 +1,189 @@
+# 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 "")
+
+# Use https://gitweb.gentoo.org/proj/codec/ghostscript-gpl-patches.git/ for patches
+# See 'index' branch for README
+MY_PATCHSET="ghostscript-gpl-10.0-patches.tar.xz"
+
+DESCRIPTION="Interpreter for the PostScript language and PDF"
+HOMEPAGE="https://ghostscript.com/ https://git.ghostscript.com/?p=ghostpdl.git;a=summary"
+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}"
+fi
+
+LICENSE="AGPL-3 CPL-1.0"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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"
+# bug #844115 for newer poppler-data dep
+RDEPEND="${DEPEND}
+ >=app-text/poppler-data-0.4.11-r2
+ >=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}"/${MY_PATCHSET%%.tar*}
+ 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)) \
+ # Do not add --enable-dynamic here, it's not supported fully upstream
+ # https://bugs.ghostscript.com/show_bug.cgi?id=705895
+ # bug #884707
+ econf \
+ --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
+
+ # Sometimes the upstream versioning deviates from the tarball(!)
+ # bug #844115#c32
+ local my_gs_version=$(find "${ED}"/usr/share/ghostscript/ -maxdepth 1 -mindepth 1 -type d || die)
+ my_gs_version=${my_gs_version##*/}
+
+ # Install the CMaps from poppler-data properly, bug #409361
+ dosym -r /usr/share/poppler/cMaps /usr/share/ghostscript/${my_gs_version}/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
+}
next reply other threads:[~2022-12-07 19:08 UTC|newest]
Thread overview: 225+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-07 19:08 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-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-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=1670440080.b92cfcd38f2911fa1475cb56a920093eae75b72b.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