diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-12-01 09:27:56 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-12-01 09:27:56 +0100 |
commit | 07d71b2acddba705875836152aa9ec657e3a7c8c (patch) | |
tree | caea63a85fcdcfbd9d125f69bb0b452fafc7d105 | |
parent | app-editors/nano: sync live (diff) | |
download | prefix-07d71b2acddba705875836152aa9ec657e3a7c8c.tar.gz prefix-07d71b2acddba705875836152aa9ec657e3a7c8c.tar.bz2 prefix-07d71b2acddba705875836152aa9ec657e3a7c8c.zip |
app-text/ghostscript-gpl: migrated to gx86
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
18 files changed, 0 insertions, 2318 deletions
diff --git a/app-text/ghostscript-gpl/Manifest b/app-text/ghostscript-gpl/Manifest deleted file mode 100644 index 7e10b847bb..0000000000 --- a/app-text/ghostscript-gpl/Manifest +++ /dev/null @@ -1,13 +0,0 @@ -DIST ghostscript-9.04.tar.bz2 29869900 BLAKE2B 537e5c1c2b52b742b4a1dad1db63dd8b83dc7b017a55cc473468371eeb93d6992187b12a0bacdc80a2f38c1ef261c0ba734101bf08c49bf45729d33bc2b69f46 SHA512 f4fd2b5d82a1f9aa918f21a85571f3684778be5b6fe868ae19165717b212aac99b515bb94e3589c3a01b7f836829a283da2162583d4d2dc3c7c267b1926a17ed -DIST ghostscript-9.05.tar.bz2 28279634 BLAKE2B e975879fd4c4935fe1d19c8eb6d11c9863446de41b8084e16a13786a5a15f21b8d4c7a74b50fcb3fb23c187a90a116a8e9206f62674d8dc0a85d98862ce5a294 SHA512 4a83c42a73fdb5139f02d1b9c8364d0b0f24e8d2952a622f94a8398d71ced8839ee868562d0bf3be048e34cae5ab0adc5eb43d2fb50f5154fe186e8329257913 -DIST ghostscript-9.06.tar.bz2 29246039 BLAKE2B 4fdac9d17d03f3d6ac548671cd61b9e18a506825aedd6e0bd3e0fddb2a4c7a4e6507bd960832d581508ec006149aa225d66fe7f220f5662c2ef55ab6273145f3 SHA512 99f7a56316bf96d55c0cd7b07c0791ad4e6ee0d3a8f3bfa04ea28890ea9ed822ebcd7084cc8118cc38dc5def27c91c24eebc08a20a630463a9bf9d0193d0923b -DIST ghostscript-9.10.tar.bz2 30983380 BLAKE2B 0ad21007cdfcd9589a6d75fe8cdf773856bbc7f3caa4c90e70a76e06fda3a2fc8d1d65418df96e5dd72b2829c3b71c0614eb75f91fa33528e1bc6e11c3b5732a SHA512 59f380e52c84b69819ef7d321f323950c22306119cfa7b38809a23e83f9a3af1e35b5d66d9b9e9adef32131aa283a235deec346acced330d7ad7d1201fe7ca04 -DIST ghostscript-9.20.tar.xz 26387028 BLAKE2B 736d4903211aa1377cf13c48bfa4f329325e5d9a15986582df7ab30cd0033858fe18e822b9e0677412c964cf8ddceb67fca6c107f74a51c6151dce0c07289aaa SHA512 3e636f9746303f0d0fbcdfed22e8da4cc2cfd87c2afde38ffef67acb6a9fc2416aaca691d64355294e70f699bcf4acf33b09d3493dc24bc3c368387f066357fd -DIST ghostscript-gpl-9.04-patchset-3.tar.bz2 7760 BLAKE2B cc4d4bf8baa4e418ea3e4a17d4083913d144ef7d2755a787ee7dbf5844e3edc116dea56dec6b33a49a90e706fd7d417461165d26bdf198f17538be9a7dfc15d5 SHA512 d8565b04cfd90a064d32aaa241d4ab4e477a04458aec1a27f273ae61ed7dd064758d7c77f3926b9baf759855953e4e178ca4d83a25e652a9263b62f5ffb137ae -DIST ghostscript-gpl-9.05-patchset-2.tar.bz2 5525 BLAKE2B 1f0b0c59cc6aac3aa80b2fed38ea471b2b86c66f50d90ffd266d5298009189d8331bab16ceb7cf1676530b5e0daaf59c3de95c9298e7a345c03a4625e59bfc5f SHA512 c14ee057c7c1769e4bc4b3c52d910172dd45524318d6278f8f62f3f4535160412010ad8d426f96ee6fdf24a662859e3079205b9250496d6d69943f3972065d0c -DIST ghostscript-gpl-9.06-patchset-1.tar.bz2 4887 BLAKE2B 85157b29b791d2cd4dfc5bde811436af60ba1771f368d421870fed765375bbc1d0d7eefbd4a41a6128cf5dfeafc87f3c0348413fdd5537da6ce726454f12a1e7 SHA512 d49f9b7454c7d4513620736dcd7163c347bc25210ab2b63edaa021d91ea3fa91d0c14fef4bb15e88c516562b0bb67ac0b81826c826daf946ac872d093a5e8ce4 -DIST ghostscript-gpl-9.09-patchset-1.tar.bz2 4332 BLAKE2B 8a03d0e072196d83dfcc0f1509d720569127461c587dcee7d20f4238598648d598fae943d9686813a4a265d366ff2f6b5147fd17f1941a57875c850746ffed52 SHA512 ced1c18f8fc72d6a5aa6f65d790c6fe56de9c29955869e64cc7a7dd0ea2bd1b76dde95ef3515fe8aa23c027d041a5e9bf122ba79ec0e6884a1198f8f6e83985e -DIST ghostscript-gpl-9.10-patchset-1.tar.bz2 5099 BLAKE2B 895147f8fe8189d5bcf5f3120eaa2b3fb6446e6ad1531c789730a4d7392dffa5df20ea8a0123be4acc1c376e47e28b9e109cf65887dab01d1b322df5e9eaf115 SHA512 ae984dae5c426c488480c7c3f0e2eaf473c521c47b968ee91880264f5dbf1df8d992398bbf4dfdc82763953a9ad681c098da3561b203e596ed1ac0edc35d84da -DIST ghostscript-gpl-9.20-patchset-2.tar.xz 16696 BLAKE2B de3c77451045c5851ec2c99328f4cfbce5ce83504436efb922e57e12157c2019a566fa1cb931e87053bb6a86bca75a8539f2f0095d9cb391cab3de89d50fa7d1 SHA512 c62acfaae388d9ecd0d00b3b63e1e42fdc917eaf568ac65833490656d6f7261a7b8df3ba44ed50373007f48b4dd3ca9a3c528ae126307d58635200521e32ba4d -DIST gsdjvu-1.5.tar.gz 207583 BLAKE2B ba15b8db67f514d1d33e53d12880940f2a3daf1f54f2d640d6408d36729e02f53b94e99e1a75a85293cfab092113902e1b401380fb1abbcc9245eb3b244495d1 SHA512 8b59e38f754b325717b0b299e64479688f31fafb7a40f7d9cc32243c45fcf1de88e6f9367c4f77c17395cebbfbe7865eb21fc9c328b4f9f97e0f398c7cc0aafe -DIST gsdjvu-1.6.tar.gz 207122 BLAKE2B d0e241afdeba7a82e1f2db546c300ce557ee8f03f43e1a9afb88ef08b40d1505d248ae65f2d5ed01fce01a4508efd017c4e880107a8544d1e56d5215bb73c17a SHA512 57f3866f1f863fa31f066b45ee679cfbdf2c6a9bec922f24fa9f50dd3ea52f192b4c9889b0c9657e96ca9e3528d3fea7dcc53b4d1ea87dd49d138ce9c9684884 diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.64-interix.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-8.64-interix.patch deleted file mode 100644 index 28a850ecf4..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.64-interix.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -ru ghostscript-8.64.orig/configure.ac ghostscript-8.64/configure.ac ---- ghostscript-8.64.orig/configure.ac 2009-03-10 09:02:37 +0100 -+++ ghostscript-8.64/configure.ac 2009-03-10 09:05:10 +0100 -@@ -994,6 +994,13 @@ - DYNAMIC_LIBS="" - X_DEVS="" - ;; -+ Interix) -+ INSTALL_SHARED="install-shared" -+ DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -+ DYNAMIC_LDFLAGS="-shared" -+ DYNAMIC_LIBS="-ldl" -+ X_DEVS="" -+ ;; - *) - AC_MSG_ERROR([Sorry, dynamic driver support not available on this platform!]) - ;; -diff -ru ghostscript-8.64.orig/contrib/gomni.c ghostscript-8.64/contrib/gomni.c ---- ghostscript-8.64.orig/contrib/gomni.c 2009-03-10 09:02:37 +0100 -+++ ghostscript-8.64/contrib/gomni.c 2009-03-10 09:07:12 +0100 -@@ -437,8 +437,14 @@ - { - if (fDebugOutput) dprintf("Remapping color pointers\n"); - -- set_dev_proc(pdev, map_rgb_color, bmp_map_16m_rgb_color); -- set_dev_proc(pdev, map_color_rgb, bmp_map_16m_color_rgb); -+ eprintf ("\n<<<<<<<<<<<<<<<<<<<<<< ERROR >>>>>>>>>>>>>>>>>>>>>>>\n\n"); -+ eprintf ("Error: bmp device needs to be dynamically accessed here!\n"); -+ -+ // this cannot be done like this, because it introduces a hard -+ // dependency to the bmp device. this would need to be done -+ // dynamically. -+ //set_dev_proc(pdev, map_rgb_color, bmp_map_16m_rgb_color); -+ //set_dev_proc(pdev, map_color_rgb, bmp_map_16m_color_rgb); - } - - if (pDev->iSync) diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-darwin.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-darwin.patch deleted file mode 100644 index 4b19234008..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-darwin.patch +++ /dev/null @@ -1,64 +0,0 @@ -Enable building a dylib and in the correct way. - -Besides that it's ugly, it also breaks the build since the Apple -toolchain is broken enough to hit some assertion when compiling with -debug enabled, so remove that. - ---- base/unix-dll.mak -+++ base/unix-dll.mak -@@ -44,21 +44,24 @@ - # shared library - GS_SONAME_BASE=lib$(GS) - -+CPU = $(shell uname) -+ifneq ($(CPU),Darwin) - # GNU/Linux - GS_SOEXT=so - GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) - GS_SONAME_MAJOR=$(GS_SONAME).$(GS_VERSION_MAJOR) - GS_SONAME_MAJOR_MINOR=$(GS_SONAME).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR) - LDFLAGS_SO=-shared -Wl,-soname=$(GS_SONAME_MAJOR) -- -+else - # MacOS X --#GS_SOEXT=dylib --#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) --#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) --#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) -+GS_SOEXT=dylib -+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) - #LDFLAGS_SO=-dynamiclib -flat_namespace --#LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) -+LDFLAGS_SO=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) - #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) -+endif - - GS_SO=$(BINDIR)/$(GS_SONAME) - GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) -@@ -82,11 +82,11 @@ - # Build the small Ghostscript loaders, with Gtk+ and without - - $(GSSOC_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) -- $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c \ -+ $(GLCC) -o $(GSSOC_XE) $(PSSRC)dxmainc.c \ - $(LDFLAGS) -L$(BINDIR) -l$(GS) - - $(GSSOX_XE): $(GS_SO) $(PSSRC)$(SOC_LOADER) -- $(GLCC) -g $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \ -+ $(GLCC) $(SOC_CFLAGS) -o $(GSSOX_XE) $(PSSRC)$(SOC_LOADER) \ - $(LDFLAGS) -L$(BINDIR) -l$(GS) $(SOC_LIBS) - - # ------------------------- Recursive make targets ------------------------- # ---- base/macos-fw.mak -+++ base/macos-fw.mak -@@ -67,7 +67,7 @@ - # it would be nice if we could link to the framework instead - - $(GSSOC_XE): $(GS_SO) $(PSSRC)dxmainc.c -- $(GLCC) -g -o $(GSSOC_XE) $(PSSRC)dxmainc.c -L$(BINDIR) -l$(GS) -+ $(GLCC) -o $(GSSOC_XE) $(PSSRC)dxmainc.c -L$(BINDIR) -l$(GS) - - # ------------------------- Recursive make targets ------------------------- # - diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-gsdjvu-1.3-partial-revert.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-gsdjvu-1.3-partial-revert.patch deleted file mode 100644 index 4b495583ab..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-gsdjvu-1.3-partial-revert.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- ghostscript-8.71/gsdjvu -+++ ghostscript-8.71/gsdjvu -@@ -55,5 +55,5 @@ - # Step 2 -- execute ghostscript - --gsdir="$progdir" -+gsdir="$(dirname $progdir)" - GS_LIB="$gsdir/lib:$gsdir/fonts:$gsdir" exec "$gsdir/bin/gs" "$@" diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-solaris.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-solaris.patch deleted file mode 100644 index 959536391e..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-8.71-solaris.patch +++ /dev/null @@ -1,13 +0,0 @@ -Treat Solaris as Linux, since we use GNU CC and GNU LD. - ---- configure.ac -+++ configure.ac -@@ -931,7 +931,7 @@ - - AC_ARG_ENABLE(dynamic, [ --enable-dynamic enable dynamically loaded drivers (default=no)], - [ case `uname` in -- Linux*|GNU*) -+ Linux*|GNU*|SunOS) - INSTALL_SHARED="install-shared" - DYNAMIC_CFLAGS="-fPIC" - if test "x$X_DEVS" != x; then diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.01-darwin.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.01-darwin.patch deleted file mode 100644 index 92147b82aa..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.01-darwin.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- base/unix-dll.mak -+++ base/unix-dll.mak -@@ -44,6 +44,9 @@ - # shared library - GS_SONAME_BASE=lib$(GS) - -+TOS=$(shell uname) -+ifneq ($(TOS),Darwin) -+ - # GNU/Linux - GS_SOEXT=so - GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -@@ -56,15 +59,19 @@ - # similar linkers it must containt the trailing "=" - LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR) - -+else - - # MacOS X --#GS_SOEXT=dylib --#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) --#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) --#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) -+GS_SOEXT=dylib -+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) - #LDFLAGS_SO=-dynamiclib -flat_namespace - #LDFLAGS_SO=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) - #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) -+LDFLAGS_SO=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) -+ -+endif - - GS_SO=$(BINDIR)/$(GS_SONAME) - GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.02-darwin-freetype.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.02-darwin-freetype.patch deleted file mode 100644 index b9e5ae7d4a..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.02-darwin-freetype.patch +++ /dev/null @@ -1,14 +0,0 @@ -Need not to just check for freetype, but also to link against it. -Darwin's compiler wants all symbols to be satisfied. - ---- base/Makefile.in -+++ base/Makefile.in -@@ -362,7 +362,7 @@ - # Solaris may need -lnsl -lsocket -lposix4. - # (Libraries required by individual drivers are handled automatically.) - --EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ -+EXTRALIBS=@LIBS@ @DYNAMIC_LIBS@ @FONTCONFIG_LIBS@ @FT_LIBS@ - - # Define the standard libraries to search at the end of linking. - # Most platforms require -lpthread for the POSIX threads library; diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.04-mint.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.04-mint.patch deleted file mode 100644 index 181a2535db..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.04-mint.patch +++ /dev/null @@ -1,273 +0,0 @@ ---- configure.ac.old 2011-10-11 15:27:01.000000000 +0100 -+++ configure.ac 2011-10-11 15:29:24.000000000 +0100 -@@ -618,6 +618,7 @@ - AC_SUBST(SHARE_ZLIB) - AC_SUBST(ZLIBDIR) - AC_SUBST(FT_SYS_ZLIB) -+LIBS="$LIBS -lz" - - dnl png for the png output device; it also requires zlib - LIBPNGDIR=src -@@ -684,9 +685,23 @@ - HAVE_LOCAL_LIBTIFF=1 - SHARE_LIBTIFF=0 - else -- AC_CHECK_LIB(tiff, TIFFOpen, -+ # We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard -+ # autoconf macro and b) requires pkg-config on the system, which is -+ # NOT standard on ANY OS, including Linux! -+ if test "x$PKGCONFIG" != x; then -+ AC_MSG_CHECKING(for libtiff with pkg-config) -+ if $PKGCONFIG --exists libtiff-4; then -+ AC_MSG_RESULT(yes) -+ CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" -+ LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" -+ HAVE_SYSTEM_LIBTIFF=1 -+ fi -+ fi -+ if test -z "$HAVE_SYSTEM_LIBTIFF"; then -+ AC_CHECK_LIB(tiff, TIFFOpen, - [AC_CHECK_HEADERS(tiff.h, [HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1])], - [], [-ljpeg]) -+ fi - fi - if test "x$HAVE_LOCAL_LIBTIFF" = x && test "x$HAVE_SYSTEM_LIBTIFF" = x; then - AC_MSG_NOTICE([Could not find a copy of libtiff on your system. -@@ -696,9 +711,23 @@ - fi - ;; - xyes) -- AC_CHECK_LIB(tiff, TIFFOpen, -+ # We MUST NOT use PKG_CHECK_MODULES since it is a) not a standard -+ # autoconf macro and b) requires pkg-config on the system, which is -+ # NOT standard on ANY OS, including Linux! -+ if test "x$PKGCONFIG" != x; then -+ AC_MSG_CHECKING(for libtiff with pkg-config) -+ if $PKGCONFIG --exists libtiff-4; then -+ AC_MSG_RESULT(yes) -+ CFLAGS="$CFLAGS `$PKGCONFIG --cflags libtiff-4`" -+ LIBS="$LIBS `$PKGCONFIG --libs libtiff-4`" -+ HAVE_SYSTEM_LIBTIFF=1 -+ fi -+ fi -+ if test -z "$HAVE_SYSTEM_LIBTIFF"; then -+ AC_CHECK_LIB(tiff, TIFFOpen, - [AC_CHECK_HEADERS(tiff.h, [HAVE_SYSTEM_LIBTIFF=1;SHARE_LIBTIFF=1])], - [], [-ljpeg]) -+ fi - if test "x$HAVE_SYSTEM_LIBTIFF" != x; then - SHARE_LIBTIFF=1 - TIFFDEVS="$TIFFDEVS_ALL" -@@ -1272,8 +1301,13 @@ - fi - ;; - PRINTERS) -- P_DEVS0="$P_DEVS0 $CANON_DEVS $EPSON_DEVS $HP_DEVS $LEXMARK_DEVS $BROTHER_DEVS $APPLE_DEVS $IBM_DEVS $OKI_DEVS $JAPAN_DEVS $MISC_PDEVS $ETS_HALFTONING_DEVS $OPVP_DEVS" -+ P_DEVS0="$P_DEVS0 $CANON_DEVS $EPSON_DEVS $HP_DEVS $LEXMARK_DEVS $BROTHER_DEVS $APPLE_DEVS $IBM_DEVS $OKI_DEVS $JAPAN_DEVS $MISC_PDEVS $ETS_HALFTONING_DEVS" - IJS_DEVS0="$IJSDEVS" -+ if test x$ac_cv_lib_dl_dlopen != xno -a x$found_iconv != xno; then -+ P_DEVS0="$P_DEVS0 $OPVP_DEVS" -+ else -+ AC_MSG_WARN(Unable to include opvp/oprp driver due to missing or disabled prerequisites...) -+ fi - ;; - FILES) - F_DEVS0="$F_DEVS0 $BMP_DEVS $FAX_DEVS $JPEG_DEVS $TIFF_DEVS $PCX_DEVS $PBM_DEVS $PS_DEVS $WTS_HALFTONING_DEVS $MISC_FDEVS" -@@ -1486,43 +1520,45 @@ - AC_ARG_ENABLE([dynamic], AC_HELP_STRING([--enable-dynamic], - [Enable dynamically loaded drivers]), - [ -- case `uname` in -- Linux*|GNU*) -- INSTALL_SHARED="install-shared" -- if test "x$X_DEVS" != x; then -+ if test "x$enable_dynamic" != xno; then -+ case `uname` in -+ Linux*|GNU*) -+ INSTALL_SHARED="install-shared" -+ if test "x$X_DEVS" != x; then -+ DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" -+ else -+ DYNAMIC_DEVS="" -+ fi -+ DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -+ X11_DEVS="" -+ OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -+ DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -+ ;; -+ *BSD) - DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" -- else -- DYNAMIC_DEVS="" -- fi -- DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -- X11_DEVS="" -- OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -- DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -- ;; -- *BSD) -- DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" -- DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -- X11_DEVS="" -- OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -- DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -- ;; -- Darwin*) -- INSTALL_SHARED="install-shared" -- DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -- X11_DEVS="" -- OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -- DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -- ;; -- SunOS) -- DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" -- DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -- OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -- DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -- ;; -- *) -- AC_MSG_ERROR([Sorry, dynamic driver support not available on this platform!]) -- ;; -- esac -+ DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -+ X11_DEVS="" -+ OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -+ DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -+ ;; -+ Darwin*) -+ INSTALL_SHARED="install-shared" -+ DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -+ X11_DEVS="" -+ OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -+ DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -+ ;; -+ SunOS) -+ DYNAMIC_DEVS="\$(GLOBJDIR)/X11.so" -+ DYNAMIC_FLAGS="-DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\\\"\$(gssharedir)\\\"" -+ OPT_CFLAGS="$DYNAMIC_CFLAGS $OPT_CFLAGS" -+ DBG_CFLAGS="$DYNAMIC_CFLAGS $DBG_CFLAGS" -+ ;; -+ *) -+ AC_MSG_ERROR([Sorry, dynamic driver support not available on this platform!]) -+ ;; -+ esac -+ fi - ]) - - AC_SUBST(DYNAMIC_CFLAGS) ---- base/sha2.c.old 2011-08-05 12:12:20.000000000 +0100 -+++ base/sha2.c 2011-10-31 11:27:20.946042197 +0000 -@@ -352,7 +352,7 @@ - static const char *sha2_hex_digits = "0123456789abcdef"; - - /*** SHA-256: *********************************************************/ --void SHA256_Init(SHA256_CTX* context) { -+void pSHA256_Init(SHA256_CTX* context) { - if (context == (SHA256_CTX*)0) { - return; - } -@@ -535,7 +535,7 @@ - - #endif /* SHA2_UNROLL_TRANSFORM */ - --void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) { -+void pSHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) { - unsigned int freespace, usedspace; - - if (len == 0) { -@@ -583,7 +583,7 @@ - usedspace = freespace = 0; - } - --void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) { -+void pSHA256_Final(sha2_byte digest[], SHA256_CTX* context) { - sha2_word32 *d = (sha2_word32*)digest; - unsigned int usedspace; - -@@ -654,7 +654,7 @@ - assert(context != (SHA256_CTX*)0); - - if (buffer != (char*)0) { -- SHA256_Final(digest, context); -+ pSHA256_Final(digest, context); - - for (i = 0; i < SHA256_DIGEST_LENGTH; i++) { - *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; -@@ -672,8 +672,8 @@ - char* SHA256_Data(const sha2_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGTH]) { - SHA256_CTX context; - -- SHA256_Init(&context); -- SHA256_Update(&context, data, len); -+ pSHA256_Init(&context); -+ pSHA256_Update(&context, data, len); - return SHA256_End(&context, digest); - } - ---- base/sha2.h.old 2011-08-05 12:12:20.000000000 +0100 -+++ base/sha2.h 2011-10-31 11:21:13.643830418 +0000 -@@ -115,9 +115,9 @@ - #ifndef NOPROTO - #ifdef SHA2_USE_INTTYPES_H - --void SHA256_Init(SHA256_CTX *); --void SHA256_Update(SHA256_CTX*, const uint8_t*, size_t); --void SHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); -+void pSHA256_Init(SHA256_CTX *); -+void pSHA256_Update(SHA256_CTX*, const uint8_t*, size_t); -+void pSHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); - char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); - char* SHA256_Data(const uint8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); - -@@ -135,9 +135,9 @@ - - #else /* SHA2_USE_INTTYPES_H */ - --void SHA256_Init(SHA256_CTX *); --void SHA256_Update(SHA256_CTX*, const u_int8_t*, size_t); --void SHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); -+void pSHA256_Init(SHA256_CTX *); -+void pSHA256_Update(SHA256_CTX*, const u_int8_t*, size_t); -+void pSHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); - char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); - char* SHA256_Data(const u_int8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); - -@@ -157,9 +157,9 @@ - - #else /* NOPROTO */ - --void SHA256_Init(); --void SHA256_Update(); --void SHA256_Final(); -+void pSHA256_Init(); -+void pSHA256_Update(); -+void pSHA256_Final(); - char* SHA256_End(); - char* SHA256_Data(); - ---- base/ssha2.c.old 2011-08-05 12:12:20.000000000 +0100 -+++ base/ssha2.c 2011-10-31 11:21:28.562319068 +0000 -@@ -28,7 +28,7 @@ - { - stream_SHA256E_state *const ss = (stream_SHA256E_state *) st; - -- SHA256_Init(&ss->sha256); -+ pSHA256_Init(&ss->sha256); - return 0; - } - -@@ -41,12 +41,12 @@ - int status = 0; - - if (pr->ptr < pr->limit) { -- SHA256_Update(&ss->sha256, pr->ptr + 1, pr->limit - pr->ptr); -+ pSHA256_Update(&ss->sha256, pr->ptr + 1, pr->limit - pr->ptr); - pr->ptr = pr->limit; - } - if (last) { - if (pw->limit - pw->ptr >= 32) { -- SHA256_Final(pw->ptr + 1, &ss->sha256); -+ pSHA256_Final(pw->ptr + 1, &ss->sha256); - pw->ptr += 32; - status = EOFC; - } else diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.05-darwin.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.05-darwin.patch deleted file mode 100644 index 8164c596e9..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.05-darwin.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- ghostscript-9.05/base/unix-dll.mak -+++ ghostscript-9.05/base/unix-dll.mak -@@ -44,6 +44,9 @@ - # shared library - GS_SONAME_BASE=lib$(GS) - -+TOS=$(shell uname) -+ifneq ($(TOS),Darwin) -+ - # GNU/Linux - GS_SOEXT=so - GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -@@ -56,15 +59,19 @@ - # similar linkers it must containt the trailing "=" - LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR) - -+else - - # MacOS X --#GS_SOEXT=dylib --#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) --#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) --#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) -+GS_SOEXT=dylib -+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) - #LDFLAGS_SO=-dynamiclib -flat_namespace --LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) -+LDFLAGS_SO_MAC=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) - #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) -+LDFLAGS_SO=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) -+ -+endif - - GS_SO=$(BINDIR)/$(GS_SONAME) - GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-darwin.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-darwin.patch deleted file mode 100644 index a9fb72af06..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-darwin.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -ur ghostscript-9.10.orig/base/unix-dll.mak ghostscript-9.10/base/unix-dll.mak ---- ghostscript-9.10.orig/base/unix-dll.mak 2013-10-18 14:08:56.109081619 +0200 -+++ ghostscript-9.10/base/unix-dll.mak 2013-10-18 14:11:55.774521005 +0200 -@@ -45,6 +45,9 @@ - # shared library - GS_SONAME_BASE=lib$(GS_SO_BASE) - -+TOS=$(shell uname) -+ifneq ($(TOS),Darwin) -+ - # GNU/Linux - GS_SOEXT=$(SO_LIB_EXT) - GS_DLLEXT=$(DLL_EXT) -@@ -62,15 +65,20 @@ - # similar linkers it must containt the trailing "=" - # LDFLAGS_SO=-shared -Wl,$(LD_SET_DT_SONAME)$(LDFLAGS_SO_PREFIX)$(GS_SONAME_MAJOR) - -+else - - # MacOS X --#GS_SOEXT=dylib --#GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) --#GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) --#GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) -+GS_SOEXT=dylib -+GS_SONAME=$(GS_SONAME_BASE).$(GS_SOEXT) -+GS_SONAME_MAJOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_SOEXT) -+GS_SONAME_MAJOR_MINOR=$(GS_SONAME_BASE).$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR).$(GS_SOEXT) - #LDFLAGS_SO=-dynamiclib -flat_namespace - #LDFLAGS_SO_MAC=-dynamiclib -install_name $(GS_SONAME_MAJOR_MINOR) -+LDFLAGS_SO_MAC=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) - #LDFLAGS_SO=-dynamiclib -install_name $(FRAMEWORK_NAME) -+LDFLAGS_SO=-dynamiclib -install_name $(libdir)/$(GS_SONAME_MAJOR) -+ -+endif - - GS_SO=$(BINDIR)/$(GS_SONAME) - GS_SO_MAJOR=$(BINDIR)/$(GS_SONAME_MAJOR) diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-ssl-namespace.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-ssl-namespace.patch deleted file mode 100644 index 24c097a559..0000000000 --- a/app-text/ghostscript-gpl/files/ghostscript-gpl-9.10-ssl-namespace.patch +++ /dev/null @@ -1,271 +0,0 @@ ---- trio/triodef.h.old 2013-11-09 11:41:31.000000000 +0000 -+++ trio/triodef.h 2013-11-09 14:03:33.000000000 +0000 -@@ -333,4 +333,12 @@ - # endif - #endif - -+#if defined(__MINT__) -+# define TRIO_NO_FLOORL 1 -+# define TRIO_NO_CEILL 1 -+# define TRIO_NO_POWL 1 -+# define TRIO_NO_FMODL 1 -+# define TRIO_NO_LOG10L 1 -+#endif -+ - #endif /* TRIO_TRIODEF_H */ ---- base/sha2.c.old 2013-11-09 11:06:11.000000000 +0000 -+++ base/sha2.c 2013-11-09 11:08:14.000000000 +0000 -@@ -240,7 +240,7 @@ - * library -- they are intended for private internal visibility/use - * only. - */ --void SHA512_Last(SHA512_CTX*); -+void pSHA512_Last(SHA512_CTX*); - void pSHA256_Transform(SHA256_CTX*, const sha2_word32*); - void pSHA512_Transform(SHA512_CTX*, const sha2_word64*); - -@@ -678,7 +678,7 @@ - } - - /*** SHA-512: *********************************************************/ --void SHA512_Init(SHA512_CTX* context) { -+void pSHA512_Init(SHA512_CTX* context) { - if (context == (SHA512_CTX*)0) { - return; - } -@@ -855,7 +855,7 @@ - - #endif /* SHA2_UNROLL_TRANSFORM */ - --void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) { -+void pSHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) { - unsigned int freespace, usedspace; - - if (len == 0) { -@@ -903,7 +903,7 @@ - usedspace = freespace = 0; - } - --void SHA512_Last(SHA512_CTX* context) { -+void pSHA512_Last(SHA512_CTX* context) { - unsigned int usedspace; - - usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; -@@ -944,7 +944,7 @@ - pSHA512_Transform(context, (sha2_word64*)context->buffer); - } - --void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) { -+void pSHA512_Final(sha2_byte digest[], SHA512_CTX* context) { - sha2_word64 *d = (sha2_word64*)digest; - - /* Sanity check: */ -@@ -952,7 +952,7 @@ - - /* If no digest buffer is passed, we don't bother doing this: */ - if (digest != (sha2_byte*)0) { -- SHA512_Last(context); -+ pSHA512_Last(context); - - /* Save the hash data for output: */ - #if BYTE_ORDER == LITTLE_ENDIAN -@@ -973,7 +973,7 @@ - MEMSET_BZERO(context, sizeof(*context)); - } - --char *SHA512_End(SHA512_CTX* context, char buffer[]) { -+char *pSHA512_End(SHA512_CTX* context, char buffer[]) { - sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest; - int i; - -@@ -981,7 +981,7 @@ - assert(context != (SHA512_CTX*)0); - - if (buffer != (char*)0) { -- SHA512_Final(digest, context); -+ pSHA512_Final(digest, context); - - for (i = 0; i < SHA512_DIGEST_LENGTH; i++) { - *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; -@@ -996,16 +996,16 @@ - return buffer; - } - --char* SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) { -+char* pSHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) { - SHA512_CTX context; - -- SHA512_Init(&context); -- SHA512_Update(&context, data, len); -- return SHA512_End(&context, digest); -+ pSHA512_Init(&context); -+ pSHA512_Update(&context, data, len); -+ return pSHA512_End(&context, digest); - } - - /*** SHA-384: *********************************************************/ --void SHA384_Init(SHA384_CTX* context) { -+void pSHA384_Init(SHA384_CTX* context) { - if (context == (SHA384_CTX*)0) { - return; - } -@@ -1014,11 +1014,11 @@ - context->bitcount[0] = context->bitcount[1] = 0; - } - --void SHA384_Update(SHA384_CTX* context, const sha2_byte* data, size_t len) { -- SHA512_Update((SHA512_CTX*)context, data, len); -+void pSHA384_Update(SHA384_CTX* context, const sha2_byte* data, size_t len) { -+ pSHA512_Update((SHA512_CTX*)context, data, len); - } - --void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) { -+void pSHA384_Final(sha2_byte digest[], SHA384_CTX* context) { - sha2_word64 *d = (sha2_word64*)digest; - - /* Sanity check: */ -@@ -1026,7 +1026,7 @@ - - /* If no digest buffer is passed, we don't bother doing this: */ - if (digest != (sha2_byte*)0) { -- SHA512_Last((SHA512_CTX*)context); -+ pSHA512_Last((SHA512_CTX*)context); - - /* Save the hash data for output: */ - #if BYTE_ORDER == LITTLE_ENDIAN -@@ -1047,7 +1047,7 @@ - MEMSET_BZERO(context, sizeof(*context)); - } - --char *SHA384_End(SHA384_CTX* context, char buffer[]) { -+char *pSHA384_End(SHA384_CTX* context, char buffer[]) { - sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest; - int i; - -@@ -1055,7 +1055,7 @@ - assert(context != (SHA384_CTX*)0); - - if (buffer != (char*)0) { -- SHA384_Final(digest, context); -+ pSHA384_Final(digest, context); - - for (i = 0; i < SHA384_DIGEST_LENGTH; i++) { - *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; -@@ -1070,10 +1070,10 @@ - return buffer; - } - --char* SHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) { -+char* pSHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) { - SHA384_CTX context; - -- SHA384_Init(&context); -- SHA384_Update(&context, data, len); -- return SHA384_End(&context, digest); -+ pSHA384_Init(&context); -+ pSHA384_Update(&context, data, len); -+ return pSHA384_End(&context, digest); - } ---- base/sha2.h.old 2013-11-10 17:26:32.101132804 +0000 -+++ base/sha2.h 2013-11-10 17:27:30.460132848 +0000 -@@ -118,40 +118,40 @@ - void pSHA256_Init(SHA256_CTX *); - void pSHA256_Update(SHA256_CTX*, const uint8_t*, size_t); - void pSHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); --char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); --char* SHA256_Data(const uint8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); -+char* pSHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); -+char* pSHA256_Data(const uint8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); - --void SHA384_Init(SHA384_CTX*); --void SHA384_Update(SHA384_CTX*, const uint8_t*, size_t); --void SHA384_Final(uint8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*); --char* SHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]); --char* SHA384_Data(const uint8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); -- --void SHA512_Init(SHA512_CTX*); --void SHA512_Update(SHA512_CTX*, const uint8_t*, size_t); --void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); --char* SHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]); --char* SHA512_Data(const uint8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); -+void pSHA384_Init(SHA384_CTX*); -+void pSHA384_Update(SHA384_CTX*, const uint8_t*, size_t); -+void pSHA384_Final(uint8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*); -+char* pSHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]); -+char* pSHA384_Data(const uint8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); -+ -+void pSHA512_Init(SHA512_CTX*); -+void pSHA512_Update(SHA512_CTX*, const uint8_t*, size_t); -+void pSHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); -+char* pSHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]); -+char* pSHA512_Data(const uint8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); - - #else /* SHA2_USE_INTTYPES_H */ - - void pSHA256_Init(SHA256_CTX *); - void pSHA256_Update(SHA256_CTX*, const u_int8_t*, size_t); - void pSHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*); --char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); --char* SHA256_Data(const u_int8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); -+char* pSHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]); -+char* pSHA256_Data(const u_int8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]); - --void SHA384_Init(SHA384_CTX*); --void SHA384_Update(SHA384_CTX*, const u_int8_t*, size_t); --void SHA384_Final(u_int8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*); --char* SHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]); --char* SHA384_Data(const u_int8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); -- --void SHA512_Init(SHA512_CTX*); --void SHA512_Update(SHA512_CTX*, const u_int8_t*, size_t); --void SHA512_Final(u_int8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); --char* SHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]); --char* SHA512_Data(const u_int8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); -+void pSHA384_Init(SHA384_CTX*); -+void pSHA384_Update(SHA384_CTX*, const u_int8_t*, size_t); -+void pSHA384_Final(u_int8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*); -+char* pSHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]); -+char* pSHA384_Data(const u_int8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]); -+ -+void pSHA512_Init(SHA512_CTX*); -+void pSHA512_Update(SHA512_CTX*, const u_int8_t*, size_t); -+void pSHA512_Final(u_int8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); -+char* pSHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]); -+char* pSHA512_Data(const u_int8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]); - - #endif /* SHA2_USE_INTTYPES_H */ - -@@ -160,20 +160,20 @@ - void pSHA256_Init(); - void pSHA256_Update(); - void pSHA256_Final(); --char* SHA256_End(); --char* SHA256_Data(); -+char* pSHA256_End(); -+char* pSHA256_Data(); - --void SHA384_Init(); --void SHA384_Update(); --void SHA384_Final(); --char* SHA384_End(); --char* SHA384_Data(); -- --void SHA512_Init(); --void SHA512_Update(); --void SHA512_Final(); --char* SHA512_End(); --char* SHA512_Data(); -+void pSHA384_Init(); -+void pSHA384_Update(); -+void pSHA384_Final(); -+char* pSHA384_End(); -+char* pSHA384_Data(); -+ -+void pSHA512_Init(); -+void pSHA512_Update(); -+void pSHA512_Final(); -+char* pSHA512_End(); -+char* pSHA512_Data(); - - #endif /* NOPROTO */ - diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r4.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r4.ebuild deleted file mode 100644 index 6240e02b06..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r4.ebuild +++ /dev/null @@ -1,243 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.04-r4.ebuild,v 1.9 2013/08/27 14:58:36 kensington Exp $ - -EAPI=3 - -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -MY_P=${P/-gpl} -GSDJVU_PV=1.5 -PVM=$(get_version_component_range 1-2) -SRC_URI=" - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 - mirror://gentoo/${P}-patchset-3.tar.bz2 - !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" - -LICENSE="GPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="bindist cups dbus djvu gtk idn jpeg2k static-libs X" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.2:2 - media-libs/lcms:0 - media-libs/libpng:0 - media-libs/tiff:0 - >=sys-libs/zlib-1.2.3 - virtual/jpeg:0 - !bindist? ( djvu? ( app-text/djvu ) ) - cups? ( >=net-print/cups-1.3.8 ) - dbus? ( sys-apps/dbus ) - gtk? ( x11-libs/gtk+:2 ) - idn? ( net-dns/libidn ) - jpeg2k? ( media-libs/jasper ) - X? ( x11-libs/libXt x11-libs/libXext )" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.4 - >=media-fonts/urw-fonts-2.4.9 - linguas_ja? ( media-fonts/kochi-substitute ) - linguas_ko? ( media-fonts/baekmuk-fonts ) - linguas_zh_CN? ( media-fonts/arphicfonts ) - linguas_zh_TW? ( media-fonts/arphicfonts ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh_CN zh_TW" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -pkg_setup() { - if use bindist && use djvu; then - ewarn "You have bindist in your USE, djvu support will NOT be compiled!" - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." - fi -} - -src_prepare() { - # remove internal copies of various libraries - rm -rf "${S}"/expat - rm -rf "${S}"/freetype - rm -rf "${S}"/jasper - rm -rf "${S}"/jpeg - rm -rf "${S}"/lcms{,2} - rm -rf "${S}"/libpng - rm -rf "${S}"/tiff - rm -rf "${S}"/zlib - # remove internal urw-fonts - rm -rf "${S}"/Resource/Font - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" - EPATCH_SOURCE="${WORKDIR}/patches/" - epatch - - if ! use bindist && use djvu ; then - unpack gsdjvu-${GSDJVU_PV}.tar.gz - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" - # hard-coding paths sucks for Prefix - epatch "${FILESDIR}"/${PN}-8.71-gsdjvu-1.3-partial-revert.patch - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" - cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" - grep -q djvusep "${S}/base/contrib.mak" || \ - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" - - # install ps2utf8.ps, bug #197818 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ - || die "sed failed" - fi - - if ! use gtk ; then - sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" - sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" - fi - - # search path + compiler flags fix - sed -i -e "s:\$(gsdatadir)/lib:${EPREFIX}/usr/share/ghostscript/${PVM}/$(get_libdir):" \ - -e "s:exdir=.*:exdir=${EPREFIX}/usr/share/doc/${PF}/examples:" \ - -e "s:docdir=.*:docdir=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e "s:GS_DOCDIR=.*:GS_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ - -e 's: -g : :g' \ - base/Makefile.in base/*.mak || die "sed failed" - - epatch "${FILESDIR}"/${PN}-9.01-darwin.patch - epatch "${FILESDIR}"/${PN}-9.04-mint.patch - - cd "${S}" - eautoreconf - # fails with non-bash on at least Solaris - sed -i -e '1c\#!'"${EPREFIX}"'/bin/bash' configure || die - - cd "${S}/jbig2dec" - eautoreconf - - cd "${S}/ijs" - eautoreconf - - # add EPREFIX to fontmap locations - local X - for X in ${LANGS} ; do - sed -i \ - -e"s:/usr:${EPREFIX}/usr:" \ - "${WORKDIR}/fontmaps/cidfmap.${X}" || die - done -} - -src_configure() { - local FONTPATH - local myconf ijsconf - for path in \ - /usr/share/fonts/urw-fonts \ - /usr/share/fonts/Type1 \ - /usr/share/fonts \ - /usr/share/poppler/cMap/Adobe-CNS1 \ - /usr/share/poppler/cMap/Adobe-GB1 \ - /usr/share/poppler/cMap/Adobe-Japan1 \ - /usr/share/poppler/cMap/Adobe-Japan2 \ - /usr/share/poppler/cMap/Adobe-Korea1 - do - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" - done - - if tc-is-static-only ; then - myconf="--enable-dynamic=no" - ijsconf="--disable-shared" - else - myconf="--enable-dynamic=yes" - ijsconf="--enable-shared" - fi - - econf \ - ${myconf} \ - --enable-freetype \ - --enable-fontconfig \ - --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 install-cups) \ - $(use_with cups pdftoraster) \ - $(use_with idn libidn) \ - $(use_with jpeg2k jasper) \ - $(use_with X x) - - if ! use bindist && use djvu ; then - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile - fi - - cd "${S}/ijs" - econf \ - ${ijsconf} \ - $(use_enable static-libs static) -} - -src_compile() { - tc-is-static-only || emake -j1 so || die "emake failed" - emake -j1 all || die "emake failed" - - cd "${S}/ijs" - emake || die "ijs emake failed" -} - -src_install() { - # -j1 -> see bug #356303 - tc-is-static-only || emake -j1 DESTDIR="${D}" install-so || die "emake install failed" - emake -j1 DESTDIR="${D}" install || die "emake install failed" - - # some printer drivers still require pstoraster, bug #383831 - use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster - - if ! use bindist && use djvu ; then - dobin gsdjvu || die "dobin gsdjvu install failed" - fi - - # remove gsc in favor of gambit, bug #253064 - rm -rf "${ED}/usr/bin/gsc" - - rm -rf "${ED}/usr/share/doc/${PF}/html/"{README,PUBLIC} - dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" - - cd "${S}/ijs" - emake DESTDIR="${D}" install || die "emake ijs install failed" - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto "/usr/share/ghostscript/${PVM}/Resource/Init" - doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" - doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" - for X in ${LANGS} ; do - if use linguas_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" - fi - done - - use static-libs || find "${ED}" -name '*.la' -delete -} diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r2.ebuild deleted file mode 100644 index 5093b3e121..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r2.ebuild +++ /dev/null @@ -1,251 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.05-r2.ebuild,v 1.4 2013/08/27 14:58:36 kensington Exp $ - -EAPI=3 - -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -MY_P=${P/-gpl} -GSDJVU_PV=1.5 -PVM=$(get_version_component_range 1-2) -SRC_URI=" - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 - mirror://gentoo/${P}-patchset-2.tar.bz2 - !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" - -LICENSE="GPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="bindist cups dbus djvu gtk idn jpeg2k linguas_de static-libs X" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.2:2 - media-libs/jbig2dec - media-libs/lcms:2 - media-libs/libpng:0 - media-libs/tiff:0 - >=sys-libs/zlib-1.2.3 - virtual/jpeg:0 - !bindist? ( djvu? ( app-text/djvu ) ) - cups? ( >=net-print/cups-1.3.8 ) - dbus? ( sys-apps/dbus ) - gtk? ( x11-libs/gtk+:2 ) - idn? ( net-dns/libidn ) - jpeg2k? ( media-libs/jasper ) - X? ( x11-libs/libXt x11-libs/libXext )" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.5-r1 - >=media-fonts/urw-fonts-2.4.9 - linguas_ja? ( media-fonts/kochi-substitute ) - linguas_ko? ( media-fonts/baekmuk-fonts ) - linguas_zh_CN? ( media-fonts/arphicfonts ) - linguas_zh_TW? ( media-fonts/arphicfonts ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh_CN zh_TW" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -pkg_setup() { - if use bindist && use djvu; then - ewarn "You have bindist in your USE, djvu support will NOT be compiled!" - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." - fi -} - -src_prepare() { - # remove internal copies of various libraries - rm -rf "${S}"/expat - rm -rf "${S}"/freetype - rm -rf "${S}"/jasper - rm -rf "${S}"/jbig2dec - rm -rf "${S}"/jpeg - rm -rf "${S}"/lcms{,2} - rm -rf "${S}"/libpng - rm -rf "${S}"/openjpeg - rm -rf "${S}"/tiff - rm -rf "${S}"/zlib - # remove internal urw-fonts - rm -rf "${S}"/Resource/Font - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" - EPATCH_SOURCE="${WORKDIR}/patches/" - epatch - - if ! use bindist && use djvu ; then - unpack gsdjvu-${GSDJVU_PV}.tar.gz - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.5-${PN}-9.05.patch" - # hard-coding paths sucks for Prefix - epatch "${FILESDIR}"/${PN}-8.71-gsdjvu-1.3-partial-revert.patch - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" - cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" - grep -q djvusep "${S}/base/contrib.mak" || \ - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" - - # install ps2utf8.ps, bug #197818 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ - || die "sed failed" - fi - - if ! use gtk ; then - sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" - sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" - fi - - # search path + compiler flags fix - sed -i -e "s:\$(gsdatadir)/lib:${EPREFIX}/usr/share/ghostscript/${PVM}/$(get_libdir):" \ - -e "s:exdir=.*:exdir=${EPREFIX}/usr/share/doc/${PF}/examples:" \ - -e "s:docdir=.*:docdir=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e "s:GS_DOCDIR=.*:GS_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ - -e 's: -g : :g' \ - base/Makefile.in base/*.mak || die "sed failed" - - epatch "${FILESDIR}"/${PN}-9.05-darwin.patch - - cd "${S}" - eautoreconf - # fails with non-bash on at least Solaris - sed -i -e '1c\#!'"${EPREFIX}"'/bin/bash' configure || die - - cd "${S}/ijs" - eautoreconf - - # add EPREFIX to fontmap locations - local X - for X in ${LANGS} ; do - sed -i \ - -e"s:/usr:${EPREFIX}/usr:" \ - "${WORKDIR}/fontmaps/cidfmap.${X}" || die - done -} - -src_configure() { - local FONTPATH - local myconf ijsconf - for path in \ - /usr/share/fonts/urw-fonts \ - /usr/share/fonts/Type1 \ - /usr/share/fonts \ - /usr/share/poppler/cMap/Adobe-CNS1 \ - /usr/share/poppler/cMap/Adobe-GB1 \ - /usr/share/poppler/cMap/Adobe-Japan1 \ - /usr/share/poppler/cMap/Adobe-Japan2 \ - /usr/share/poppler/cMap/Adobe-Korea1 - do - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" - done - - if tc-is-static-only ; then - myconf="--enable-dynamic=no" - ijsconf="--disable-shared" - else - myconf="--enable-dynamic=yes" - ijsconf="--enable-shared" - fi - - econf \ - ${myconf} \ - --enable-freetype \ - --enable-fontconfig \ - --disable-compile-inits \ - --disable-openjpeg \ - --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 install-cups) \ - $(use_with cups pdftoraster) \ - $(use_with idn libidn) \ - $(use_with jpeg2k jasper) \ - $(use_with X x) - - if ! use bindist && use djvu ; then - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile - fi - - cd "${S}/ijs" - econf \ - ${ijsconf} \ - $(use_enable static-libs static) -} - -src_compile() { - tc-is-static-only || emake -j1 so || die "emake failed" - emake -j1 all || die "emake failed" - - cd "${S}/ijs" - emake || die "ijs emake failed" -} - -src_install() { - # workaround: -j1 -> see bug #356303 - tc-is-static-only || emake -j1 DESTDIR="${D}" install-so || die "emake install failed" - emake -j1 DESTDIR="${D}" install || die "emake install failed" - - # workaround: some printer drivers still require pstoraster, bug #383831 - use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster - # workaround: do the same for pstopxl as of gs 9.05 - use cups && dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl - - if ! use bindist && use djvu ; then - dobin gsdjvu || die "dobin gsdjvu install failed" - fi - - # remove gsc in favor of gambit, bug #253064 - rm -rf "${ED}/usr/bin/gsc" - - rm -rf "${ED}/usr/share/doc/${PF}/html/"{README,PUBLIC} - dodoc doc/GS9_Color_Management.pdf || die "dodoc install failed" - - cd "${S}/ijs" - emake DESTDIR="${D}" install || die "emake ijs install failed" - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto "/usr/share/ghostscript/${PVM}/Resource/Init" - doins "${WORKDIR}/fontmaps/CIDFnmap" || die "doins CIDFnmap failed" - doins "${WORKDIR}/fontmaps/cidfmap" || die "doins cidfmap failed" - for X in ${LANGS} ; do - if use linguas_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X}" || die "doins cidfmap.${X} failed" - fi - done - - # install the CMaps from poppler-data properly, bug 409361 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap - - use static-libs || find "${ED}" -name '*.la' -delete - - use linguas_de || rm -r "${ED}"/usr/share/man/de -} diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.06.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.06.ebuild deleted file mode 100644 index b8f3e29608..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.06.ebuild +++ /dev/null @@ -1,256 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.06.ebuild,v 1.5 2013/08/27 14:58:36 kensington Exp $ - -EAPI=4 - -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -MY_P=${P/-gpl} -GSDJVU_PV=1.5 -PVM=$(get_version_component_range 1-2) -SRC_URI=" - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 - mirror://gentoo/${P}-patchset-1.tar.bz2 - !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" - -LICENSE="GPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="bindist cups dbus djvu gtk idn jpeg2k linguas_de static-libs X" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.2:2 - media-libs/jbig2dec - media-libs/lcms:2 - media-libs/libpng:0 - media-libs/tiff:0 - >=sys-libs/zlib-1.2.3 - virtual/jpeg:0 - !bindist? ( djvu? ( app-text/djvu ) ) - cups? ( >=net-print/cups-1.3.8 ) - dbus? ( sys-apps/dbus ) - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) ) - idn? ( net-dns/libidn ) - jpeg2k? ( >=media-libs/openjpeg-1.5.0:0 ) - X? ( x11-libs/libXt x11-libs/libXext )" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.5-r1 - >=media-fonts/urw-fonts-2.4.9 - linguas_ja? ( media-fonts/kochi-substitute ) - linguas_ko? ( media-fonts/baekmuk-fonts ) - linguas_zh_CN? ( media-fonts/arphicfonts ) - linguas_zh_TW? ( media-fonts/arphicfonts ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh_CN zh_TW" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -pkg_setup() { - if use bindist && use djvu; then - ewarn "You have bindist in your USE, djvu support will NOT be compiled!" - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." - fi -} - -src_prepare() { - # remove internal copies of various libraries - rm -rf "${S}"/expat - rm -rf "${S}"/freetype - rm -rf "${S}"/jasper - rm -rf "${S}"/jbig2dec - rm -rf "${S}"/jpeg - rm -rf "${S}"/lcms{,2} - rm -rf "${S}"/libpng - rm -rf "${S}"/openjpeg - rm -rf "${S}"/tiff - rm -rf "${S}"/zlib - # remove internal urw-fonts - rm -rf "${S}"/Resource/Font - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" - EPATCH_SOURCE="${WORKDIR}/patches/" - epatch - - if ! use bindist && use djvu ; then - unpack gsdjvu-${GSDJVU_PV}.tar.gz - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.5-${PN}-9.05.patch" - # hard-coding paths sucks for Prefix - epatch "${FILESDIR}"/${PN}-8.71-gsdjvu-1.3-partial-revert.patch - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}/lib" - cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" - grep -q djvusep "${S}/base/contrib.mak" || \ - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" - - # install ps2utf8.ps, bug #197818 - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' "${S}/base/unixinst.mak" \ - || die "sed failed" - fi - - if ! use gtk ; then - sed -i "s:\$(GSSOX)::" base/*.mak || die "gsx sed failed" - sed -i "s:.*\$(GSSOX_XENAME)$::" base/*.mak || die "gsxso sed failed" - fi - - # search path + compiler flags fix - sed -i -e "s:\$(gsdatadir)/lib:${EPREFIX}/usr/share/ghostscript/${PVM}/$(get_libdir):" \ - -e "s:exdir=.*:exdir=${EPREFIX}/usr/share/doc/${PF}/examples:" \ - -e "s:docdir=.*:docdir=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e "s:GS_DOCDIR=.*:GS_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ - -e 's: -g : :g' \ - base/Makefile.in base/*.mak || die "sed failed" - - epatch "${FILESDIR}"/${PN}-9.05-darwin.patch - - # bug 467100 - sed -i -e '/AM_PROG_CC_STDC/d' ijs/configure.ac || die "sed failed" - - cd "${S}" - eautoreconf - # fails with non-bash on at least Solaris - sed -i -e '1c\#!'"${EPREFIX}"'/bin/bash' configure || die - - cd "${S}/ijs" - eautoreconf - - # add EPREFIX to fontmap locations - local X - for X in ${LANGS} ; do - sed -i \ - -e"s:/usr:${EPREFIX}/usr:" \ - "${WORKDIR}/fontmaps/cidfmap.${X}" || die - done -} - -src_configure() { - local FONTPATH - local myconf ijsconf - for path in \ - /usr/share/fonts/urw-fonts \ - /usr/share/fonts/Type1 \ - /usr/share/fonts \ - /usr/share/poppler/cMap/Adobe-CNS1 \ - /usr/share/poppler/cMap/Adobe-GB1 \ - /usr/share/poppler/cMap/Adobe-Japan1 \ - /usr/share/poppler/cMap/Adobe-Japan2 \ - /usr/share/poppler/cMap/Adobe-Korea1 - do - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" - done - - if tc-is-static-only ; then - myconf="--enable-dynamic=no" - ijsconf="--disable-shared" - else - myconf="--enable-dynamic=yes" - ijsconf="--enable-shared" - fi - - econf \ - ${myconf} \ - --enable-freetype \ - --enable-fontconfig \ - --disable-compile-inits \ - --with-drivers=ALL \ - --with-fontpath="$FONTPATH" \ - --with-ijs \ - --with-jbig2dec \ - --with-libpaper \ - --with-system-libtiff \ - --without-jasper \ - --without-lcms \ - --without-luratech \ - $(use_enable cups) \ - $(use_enable dbus) \ - $(use_enable gtk) \ - $(use_enable jpeg2k openjpeg ) \ - $(use_with cups install-cups) \ - $(use_with cups pdftoraster) \ - $(use_with idn libidn) \ - $(use_with X x) - - if ! use bindist && use djvu ; then - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' Makefile - fi - - cd "${S}/ijs" - econf \ - ${ijsconf} \ - $(use_enable static-libs static) -} - -src_compile() { - # workaround: -j1 -> see bug #234378 - tc-is-static-only || emake -j1 so - emake -j1 all - - cd "${S}/ijs" - emake -} - -src_install() { - # workaround: -j1 -> see bug #356303 - tc-is-static-only || emake -j1 DESTDIR="${D}" install-so - emake -j1 DESTDIR="${D}" install - - # workaround: some printer drivers still require pstoraster, bug #383831 - use cups && dosym /usr/libexec/cups/filter/gstoraster /usr/libexec/cups/filter/pstoraster - # workaround: do the same for pstopxl as of gs 9.05 - use cups && dosym /usr/libexec/cups/filter/gstopxl /usr/libexec/cups/filter/pstopxl - - if ! use bindist && use djvu ; then - dobin gsdjvu - fi - - # remove gsc in favor of gambit, bug #253064 - rm -rf "${ED}/usr/bin/gsc" - - rm -rf "${ED}/usr/share/doc/${PF}/html/"{README,PUBLIC} - dodoc doc/GS9_Color_Management.pdf - - cd "${S}/ijs" - emake DESTDIR="${D}" install - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto "/usr/share/ghostscript/${PVM}/Resource/Init" - doins "${WORKDIR}/fontmaps/CIDFnmap" - doins "${WORKDIR}/fontmaps/cidfmap" - for X in ${LANGS} ; do - if use linguas_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X}" - fi - done - - # install the CMaps from poppler-data properly, bug 409361 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap - - use static-libs || find "${ED}" -name '*.la' -delete - - use linguas_de || rm -r "${ED}"/usr/share/man/de -} diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r1.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r1.ebuild deleted file mode 100644 index 66dae4671d..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.10-r1.ebuild +++ /dev/null @@ -1,246 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.10.ebuild,v 1.1 2013/09/06 00:53:53 tgurr Exp $ - -EAPI=5 - -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -MY_P=${P/-gpl} -GSDJVU_PV=1.6 -PVM=$(get_version_component_range 1-2) -SRC_URI=" - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 - mirror://gentoo/${PN}-9.10-patchset-1.tar.bz2 - !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" - -LICENSE="AGPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="bindist cups dbus djvu gtk idn linguas_de static-libs X" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.9:2= - media-libs/jbig2dec - >=media-libs/lcms-2.5:2 - >=media-libs/libpng-1.6.2:0= - >=media-libs/tiff-4.0.1:0= - >=sys-libs/zlib-1.2.7:= - virtual/jpeg:0 - !bindist? ( djvu? ( app-text/djvu ) ) - cups? ( >=net-print/cups-1.3.8 ) - dbus? ( sys-apps/dbus ) - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) ) - idn? ( net-dns/libidn ) - X? ( x11-libs/libXt x11-libs/libXext ) -" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig -" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.5-r1 - >=media-fonts/urw-fonts-2.4.9 - linguas_ja? ( media-fonts/kochi-substitute ) - linguas_ko? ( media-fonts/baekmuk-fonts ) - linguas_zh_CN? ( media-fonts/arphicfonts ) - linguas_zh_TW? ( media-fonts/arphicfonts ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other - !<net-print/cups-filters-1.0.36-r2 -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh_CN zh_TW" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -pkg_setup() { - if use bindist && use djvu; then - ewarn "You have bindist in your USE, djvu support will NOT be compiled!" - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." - fi -} - -src_prepare() { - # remove internal copies of various libraries - rm -rf "${S}"/cups/libs - rm -rf "${S}"/expat - rm -rf "${S}"/freetype - rm -rf "${S}"/jbig2dec - rm -rf "${S}"/jpeg - rm -rf "${S}"/lcms{,2} - rm -rf "${S}"/libpng - rm -rf "${S}"/tiff - rm -rf "${S}"/zlib - # remove internal urw-fonts - rm -rf "${S}"/Resource/Font - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" - EPATCH_SOURCE="${WORKDIR}/patches/" - epatch - - if ! use bindist && use djvu ; then - unpack gsdjvu-${GSDJVU_PV}.tar.gz - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" - # hard-coding paths sucks for Prefix - epatch "${FILESDIR}"/${PN}-8.71-gsdjvu-1.3-partial-revert.patch - cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" - grep -q djvusep "${S}/base/contrib.mak" || \ - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" - - # install ps2utf8.ps, bug #197818 - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \ - "${S}"/base/unixinst.mak || die "sed failed" - fi - - if ! use gtk ; then - sed -i -e "s:\$(GSSOX)::" \ - -e "s:.*\$(GSSOX_XENAME)$::" \ - "${S}"/base/unix-dll.mak || die "sed failed" - fi - - # search path + compiler flags fix - sed -i -e "s:\$(gsdatadir)/lib:${EPREFIX}/usr/share/ghostscript/${PVM}/$(get_libdir):" \ - -e "s:exdir=.*:exdir=${EPREFIX}/usr/share/doc/${PF}/examples:" \ - -e "s:docdir=.*:docdir=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e "s:GS_DOCDIR=.*:GS_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ - -e 's: -g : :g' \ - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed" - - epatch "${FILESDIR}"/${PN}-9.10-darwin.patch - epatch "${FILESDIR}"/${PN}-9.10-ssl-namespace.patch - - cd "${S}" - eautoreconf - # fails with non-bash on at least Solaris - sed -i -e '1c\#!'"${EPREFIX}"'/bin/bash' configure || die - - cd "${S}/ijs" - eautoreconf - - # add EPREFIX to fontmap locations - local X - for X in ${LANGS} ; do - sed -i \ - -e"s:/usr:${EPREFIX}/usr:" \ - "${WORKDIR}/fontmaps/cidfmap.${X}" || die - done -} - -src_configure() { - local FONTPATH - local myconf ijsconf - for path in \ - /usr/share/fonts/urw-fonts \ - /usr/share/fonts/Type1 \ - /usr/share/fonts \ - /usr/share/poppler/cMap/Adobe-CNS1 \ - /usr/share/poppler/cMap/Adobe-GB1 \ - /usr/share/poppler/cMap/Adobe-Japan1 \ - /usr/share/poppler/cMap/Adobe-Japan2 \ - /usr/share/poppler/cMap/Adobe-Korea1 - do - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" - done - - if tc-is-static-only ; then - myconf="--enable-dynamic=no" - ijsconf="--disable-shared" - else - myconf="--enable-dynamic=yes" - ijsconf="--enable-shared" - fi - - econf \ - ${myconf} \ - --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-lcms \ - --without-luratech \ - $(use_enable cups) \ - $(use_enable dbus) \ - $(use_enable gtk) \ - $(use_with cups pdftoraster) \ - $(use_with idn libidn) \ - $(use_with X x) - - if ! use bindist && use djvu ; then - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \ - "${S}"/Makefile || die "sed failed" - fi - - cd "${S}/ijs" - econf \ - ${ijsconf} \ - $(use_enable static-libs static) -} - -src_compile() { - # workaround: -j1 -> see bug #234378 - tc-is-static-only || emake -j1 so - emake -j1 all - - cd "${S}/ijs" - emake -} - -src_install() { - # workaround: -j1 -> see bug #356303 - tc-is-static-only || emake -j1 DESTDIR="${D}" install-so - emake -j1 DESTDIR="${D}" install - - if ! use bindist && use djvu ; then - dobin gsdjvu - fi - - # remove gsc in favor of gambit, bug #253064 - rm -rf "${ED}/usr/bin/gsc" - - cd "${S}/ijs" - emake DESTDIR="${D}" install - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto "/usr/share/ghostscript/${PVM}/Resource/Init" - doins "${WORKDIR}/fontmaps/CIDFnmap" - doins "${WORKDIR}/fontmaps/cidfmap" - for X in ${LANGS} ; do - if use linguas_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X}" - fi - done - - # install the CMaps from poppler-data properly, bug 409361 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap - - use static-libs || find "${ED}" -name '*.la' -delete - - use linguas_de || rm -r "${ED}"/usr/share/man/de -} diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.10.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.10.ebuild deleted file mode 100644 index 8cf02a6762..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.10.ebuild +++ /dev/null @@ -1,246 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/ghostscript-gpl/ghostscript-gpl-9.10.ebuild,v 1.1 2013/09/06 00:53:53 tgurr Exp $ - -EAPI=5 - -inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -MY_P=${P/-gpl} -GSDJVU_PV=1.6 -PVM=$(get_version_component_range 1-2) -SRC_URI=" - mirror://sourceforge/ghostscript/${MY_P}.tar.bz2 - mirror://gentoo/${PN}-9.09-patchset-1.tar.bz2 - !bindist? ( djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz ) )" - -LICENSE="AGPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" -IUSE="bindist cups dbus djvu gtk idn linguas_de static-libs X" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.9:2= - media-libs/jbig2dec - >=media-libs/lcms-2.5:2 - >=media-libs/libpng-1.6.2:0= - >=media-libs/tiff-4.0.1:0= - >=sys-libs/zlib-1.2.7:= - virtual/jpeg:0 - !bindist? ( djvu? ( app-text/djvu ) ) - cups? ( >=net-print/cups-1.3.8 ) - dbus? ( sys-apps/dbus ) - gtk? ( || ( x11-libs/gtk+:3 x11-libs/gtk+:2 ) ) - idn? ( net-dns/libidn ) - X? ( x11-libs/libXt x11-libs/libXext ) -" - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig -" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.5-r1 - >=media-fonts/urw-fonts-2.4.9 - linguas_ja? ( media-fonts/kochi-substitute ) - linguas_ko? ( media-fonts/baekmuk-fonts ) - linguas_zh_CN? ( media-fonts/arphicfonts ) - linguas_zh_TW? ( media-fonts/arphicfonts ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other - !<net-print/cups-filters-1.0.36-r2 -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh_CN zh_TW" -for X in ${LANGS} ; do - IUSE="${IUSE} linguas_${X}" -done - -pkg_setup() { - if use bindist && use djvu; then - ewarn "You have bindist in your USE, djvu support will NOT be compiled!" - ewarn "See http://djvu.sourceforge.net/gsdjvu/COPYING for details on licensing issues." - fi -} - -src_prepare() { - # remove internal copies of various libraries - rm -rf "${S}"/cups/libs - rm -rf "${S}"/expat - rm -rf "${S}"/freetype - rm -rf "${S}"/jbig2dec - rm -rf "${S}"/jpeg - rm -rf "${S}"/lcms{,2} - rm -rf "${S}"/libpng - rm -rf "${S}"/tiff - rm -rf "${S}"/zlib - # remove internal urw-fonts - rm -rf "${S}"/Resource/Font - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git - EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" - EPATCH_SOURCE="${WORKDIR}/patches/" - epatch - - if ! use bindist && use djvu ; then - unpack gsdjvu-${GSDJVU_PV}.tar.gz - cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" - cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}/base" - epatch "${WORKDIR}/patches-gsdjvu/gsdjvu-1.3-${PN}-8.64.patch" - # hard-coding paths sucks for Prefix - epatch "${FILESDIR}"/${PN}-8.71-gsdjvu-1.3-partial-revert.patch - cp "${S}/base/contrib.mak" "${S}/base/contrib.mak.gsdjvu" - grep -q djvusep "${S}/base/contrib.mak" || \ - cat gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}/base/contrib.mak" - - # install ps2utf8.ps, bug #197818 - cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib - sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \ - "${S}"/base/unixinst.mak || die "sed failed" - fi - - if ! use gtk ; then - sed -i -e "s:\$(GSSOX)::" \ - -e "s:.*\$(GSSOX_XENAME)$::" \ - "${S}"/base/unix-dll.mak || die "sed failed" - fi - - # search path + compiler flags fix - sed -i -e "s:\$(gsdatadir)/lib:${EPREFIX}/usr/share/ghostscript/${PVM}/$(get_libdir):" \ - -e "s:exdir=.*:exdir=${EPREFIX}/usr/share/doc/${PF}/examples:" \ - -e "s:docdir=.*:docdir=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e "s:GS_DOCDIR=.*:GS_DOCDIR=${EPREFIX}/usr/share/doc/${PF}/html:" \ - -e 's:-L$(BINDIR):$(LDFLAGS) &:g' \ - -e 's: -g : :g' \ - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed" - - epatch "${FILESDIR}"/${PN}-9.10-darwin.patch - epatch "${FILESDIR}"/${PN}-9.10-ssl-namespace.patch - - cd "${S}" - eautoreconf - # fails with non-bash on at least Solaris - sed -i -e '1c\#!'"${EPREFIX}"'/bin/bash' configure || die - - cd "${S}/ijs" - eautoreconf - - # add EPREFIX to fontmap locations - local X - for X in ${LANGS} ; do - sed -i \ - -e"s:/usr:${EPREFIX}/usr:" \ - "${WORKDIR}/fontmaps/cidfmap.${X}" || die - done -} - -src_configure() { - local FONTPATH - local myconf ijsconf - for path in \ - /usr/share/fonts/urw-fonts \ - /usr/share/fonts/Type1 \ - /usr/share/fonts \ - /usr/share/poppler/cMap/Adobe-CNS1 \ - /usr/share/poppler/cMap/Adobe-GB1 \ - /usr/share/poppler/cMap/Adobe-Japan1 \ - /usr/share/poppler/cMap/Adobe-Japan2 \ - /usr/share/poppler/cMap/Adobe-Korea1 - do - FONTPATH="$FONTPATH${FONTPATH:+:}${EPREFIX}$path" - done - - if tc-is-static-only ; then - myconf="--enable-dynamic=no" - ijsconf="--disable-shared" - else - myconf="--enable-dynamic=yes" - ijsconf="--enable-shared" - fi - - econf \ - ${myconf} \ - --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-lcms \ - --without-luratech \ - $(use_enable cups) \ - $(use_enable dbus) \ - $(use_enable gtk) \ - $(use_with cups pdftoraster) \ - $(use_with idn libidn) \ - $(use_with X x) - - if ! use bindist && use djvu ; then - sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \ - "${S}"/Makefile || die "sed failed" - fi - - cd "${S}/ijs" - econf \ - ${ijsconf} \ - $(use_enable static-libs static) -} - -src_compile() { - # workaround: -j1 -> see bug #234378 - tc-is-static-only || emake -j1 so - emake -j1 all - - cd "${S}/ijs" - emake -} - -src_install() { - # workaround: -j1 -> see bug #356303 - tc-is-static-only || emake -j1 DESTDIR="${D}" install-so - emake -j1 DESTDIR="${D}" install - - if ! use bindist && use djvu ; then - dobin gsdjvu - fi - - # remove gsc in favor of gambit, bug #253064 - rm -rf "${ED}/usr/bin/gsc" - - cd "${S}/ijs" - emake DESTDIR="${D}" install - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto "/usr/share/ghostscript/${PVM}/Resource/Init" - doins "${WORKDIR}/fontmaps/CIDFnmap" - doins "${WORKDIR}/fontmaps/cidfmap" - for X in ${LANGS} ; do - if use linguas_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X}" - fi - done - - # install the CMaps from poppler-data properly, bug 409361 - dosym /usr/share/poppler/cMaps /usr/share/ghostscript/${PVM}/Resource/CMap - - use static-libs || find "${ED}" -name '*.la' -delete - - use linguas_de || rm -r "${ED}"/usr/share/man/de -} diff --git a/app-text/ghostscript-gpl/ghostscript-gpl-9.20-r2.ebuild b/app-text/ghostscript-gpl/ghostscript-gpl-9.20-r2.ebuild deleted file mode 100644 index 74db684ad6..0000000000 --- a/app-text/ghostscript-gpl/ghostscript-gpl-9.20-r2.ebuild +++ /dev/null @@ -1,261 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools multilib versionator flag-o-matic toolchain-funcs - -DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF" -HOMEPAGE="http://ghostscript.com/" - -# Maintainer notes about djvu support: -# gsdjvu has not seen any commits since July 2016, which was also roughly the time -# when ghostscript started rearranging internals. Issues I found so far: -# * gs_state and gs_imager_state got unified into gs_gstate -# * decode_glyph changed arguments and semantics (it doesnt give you the unicode now, -# but the length of the required byte array, which you have to allocate and fill) -# * gs_text_enum_t has lost its element pis (???) - -MY_P=${P/-gpl} -# GSDJVU_PV=1.9 -PVM=$(get_version_component_range 1-2) -PVM_S=$(replace_all_version_separators "" ${PVM}) -# SRC_URI=" -# https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz -# mirror://gentoo/${PN}-9.20-patchset-1.tar.xz -# djvu? ( mirror://sourceforge/djvu/gsdjvu-${GSDJVU_PV}.tar.gz )" -SRC_URI=" - https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${PVM_S}/${MY_P}.tar.xz - https://dev.gentoo.org/~dilfridge/distfiles/${PN}-9.20-patchset-2.tar.xz -" - -LICENSE="AGPL-3 CPL-1.0" -SLOT="0" -KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -# IUSE="cups dbus djvu gtk l10n_de static-libs tiff unicode X" -IUSE="cups dbus gtk l10n_de static-libs tiff unicode X" -# RESTRICT="djvu? ( bindist )" - -COMMON_DEPEND=" - app-text/libpaper - media-libs/fontconfig - >=media-libs/freetype-2.4.9:2= - media-libs/jbig2dec - >=media-libs/lcms-2.6:2 - >=media-libs/libpng-1.6.2:0= - >=media-libs/openjpeg-2.1.0:2= - >=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 ) - tiff? ( >=media-libs/tiff-4.0.1:0= ) - X? ( x11-libs/libXt x11-libs/libXext ) -" -# djvu? ( app-text/djvu ) - -DEPEND="${COMMON_DEPEND} - virtual/pkgconfig -" - -RDEPEND="${COMMON_DEPEND} - >=app-text/poppler-data-0.4.5-r1 - >=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 ) - !!media-fonts/gnu-gs-fonts-std - !!media-fonts/gnu-gs-fonts-other - !<net-print/cups-filters-1.0.36-r2 -" - -S="${WORKDIR}/${MY_P}" - -LANGS="ja ko zh-CN zh-TW" -for X in ${LANGS} ; do - IUSE="${IUSE} l10n_${X}" -done - -src_prepare() { - default - - # remove internal copies of various libraries - rm -rf "${S}"/cups/libs || die - rm -rf "${S}"/expat || die - rm -rf "${S}"/freetype || die - rm -rf "${S}"/jbig2dec || die - rm -rf "${S}"/jpeg{,xr} || die - rm -rf "${S}"/lcms{,2} || die - rm -rf "${S}"/libpng || die - rm -rf "${S}"/tiff || die - rm -rf "${S}"/zlib || die - rm -rf "${S}"/openjpeg || die - # remove internal CMaps (CMaps from poppler-data are used instead) - rm -rf "${S}"/Resource/CMap || die - - # apply various patches, many borrowed from Fedora - # http://pkgs.fedoraproject.org/cgit/ghostscript.git - eapply "${WORKDIR}/patches/"*.patch - - eapply $FILESDIR/ghostscript-gpl-9.10-darwin.patch - -# if use djvu ; then -# unpack gsdjvu-${GSDJVU_PV}.tar.gz -# -# local gsdjvu_base=devices -# local gsdjvu_msed='-e s/@@djvu@@/DEV/g' -# -# cp gsdjvu-${GSDJVU_PV}/gdevdjvu.c "${S}"/${gsdjvu_base} || die -# -# cp gsdjvu-${GSDJVU_PV}/ps2utf8.ps "${S}"/lib || die -# -# cp gsdjvu-${GSDJVU_PV}/gsdjvu "${S}" || die -# cp "${S}"/${gsdjvu_base}/contrib.mak "${S}"/${gsdjvu_base}/contrib.mak.gsdjvu || die -# grep -q djvusep "${S}"/${gsdjvu_base}/contrib.mak || \ -# sed ${gsdjvu_msed} < gsdjvu-${GSDJVU_PV}/gsdjvu.mak >> "${S}"/${gsdjvu_base}/contrib.mak || die -# -## # install ps2utf8.ps, bug #197818 -## sed -i -e '/$(EXTRA_INIT_FILES)/ a\ps2utf8.ps \\' \ -## "${S}"/base/unixinst.mak || die "sed failed" -# fi - - if ! use gtk ; then - sed -i -e "s:\$(GSSOX)::" \ - -e "s:.*\$(GSSOX_XENAME)$::" \ - "${S}"/base/unix-dll.mak || die "sed failed" - fi - - # Force the include dirs to a neutral location. - sed -i \ - -e "/^ZLIBDIR=/s:=.*:=${T}:" \ - 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 -i \ - -e '/^zlib_h/s:=.*:=:' \ - -e 's|-DOPJ_STATIC ||' \ - base/lib.mak || die - - # search path fix - # put LDFLAGS after BINDIR, bug #383447 - sed -i -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' \ - "${S}"/Makefile.in "${S}"/base/*.mak || die "sed failed" - - cd "${S}" || die - # remove incorrect symlink, bug 590384 - rm -f ijs/ltmain.sh || die - eautoreconf - - cd "${S}/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:+:}$path" - done - - PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \ - econf \ - --enable-dynamic$(tc-is-static-only && echo =no) \ - --enable-freetype \ - --enable-fontconfig \ - --enable-openjpeg \ - --disable-compile-inits \ - --with-drivers=ALL \ - --with-fontpath="$FONTPATH" \ - --with-ijs \ - --with-jbig2dec \ - --with-libpaper \ - --without-luratech \ - $(use_enable cups) \ - $(use_enable dbus) \ - $(use_enable gtk) \ - $(use_with cups pdftoraster) \ - $(use_with unicode libidn) \ - $(use_with tiff system-libtiff) \ - $(use_with X x) - -# if use djvu ; then -# sed -i -e 's!$(DD)bbox.dev!& $(DD)djvumask.dev $(DD)djvusep.dev!g' \ -# "${S}"/Makefile || die "sed failed" -# fi - - cd "${S}/ijs" || die - econf \ - --enable-shared$(tc-is-static-only && echo =no) \ - $(use_enable static-libs static) -} - -src_compile() { - tc-is-static-only || emake so - emake all - - cd "${S}/ijs" || die - emake -} - -src_install() { - tc-is-static-only || emake DESTDIR="${D}" install-so - emake DESTDIR="${D}" install - -# use djvu && dobin gsdjvu - - # 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 - - # rename the original cidfmap to cidfmap.GS - mv "${ED}/usr/share/ghostscript/${PVM}/Resource/Init/cidfmap"{,.GS} || die - - # install our own cidfmap to handle CJK fonts - insinto /usr/share/ghostscript/${PVM}/Resource/Init - doins \ - "${WORKDIR}/fontmaps/CIDFnmap" \ - "${WORKDIR}/fontmaps/cidfmap" - for X in ${LANGS} ; do - if use l10n_${X} ; then - doins "${WORKDIR}/fontmaps/cidfmap.${X/-/_}" - fi - done - - # install the CMaps from poppler-data properly, bug #409361 - dosym "/usr/share/poppler/cMaps" "/usr/share/ghostscript/${PVM}/Resource/CMap" - - use static-libs || find "${ED}" -name '*.la' -delete - - # fix install_names - if [[ ${CHOST} == *-darwin* ]] ; then - local lib - for lib in "${ED%/}"/usr/$(get_libdir)/*.dylib ; do - install_name_tool -id "${lib#${D%/}}" "${lib}" - done - local libgs="libgs.${PV}.dylib" - install_name_tool -change "${libgs}" @executable_path/../$(get_libdir)/"${libgs}" \ - "${ED}"/usr/bin/gs - fi - - if ! use l10n_de; then - rm -r "${ED}"/usr/share/man/de || die - fi -} diff --git a/app-text/ghostscript-gpl/metadata.xml b/app-text/ghostscript-gpl/metadata.xml deleted file mode 100644 index 503a83f6bc..0000000000 --- a/app-text/ghostscript-gpl/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>printing@gentoo.org</email> - <name>Gentoo Printing Project</name> - </maintainer> - <upstream> - <remote-id type="sourceforge">djvu</remote-id> - </upstream> -</pkgmetadata> |