Ticket #47720: Portfile-ghostscript.3.diff
File Portfile-ghostscript.3.diff, 4.9 KB (added by Schamschula (Marius Schamschula), 10 years ago) |
---|
-
Portfile
old new 4 4 PortGroup muniversal 1.0 5 5 6 6 name ghostscript 7 version 9.10 8 revision 2 7 version 9.16 9 8 categories print 10 9 license AGPL-3 11 10 maintainers takanori openmaintainer … … 18 17 homepage http://www.cs.wisc.edu/~ghost/ 19 18 master_sites http://downloads.ghostscript.com/public/:source \ 20 19 sourceforge:gs-fonts:fonts \ 21 sourceforge:mapping-for-pdf.adobe:misc 22 set mrversion 20091116 20 https://github.com/adobe-type-tools/mapping-resources-pdf/archive/:misc 21 22 # Note: this needs to be manually updated for new upstream commits 23 set mappingresources_commit \ 24 3128b3872aa14a4c066d5cbcdde66a3b6bba0982 25 23 26 distfiles ${distname}.tar.gz:source \ 24 27 ghostscript-fonts-other-6.0.tar.gz:fonts \ 25 mappingresources4pdf_2unicode_${mrversion}.tar.Z:misc \ 26 mappingresources4pdf_other_${mrversion}.tar.Z:misc 28 ${mappingresources_commit}.zip:misc 27 29 patchfiles patch-base_unix-dll.mak.diff \ 28 30 patch-base_stdpre.h.diff 29 31 30 32 checksums ${distname}.tar.gz \ 31 md5 5f0c0a2670b08466a4050ddbd1f3de63\32 sha1 29d6538ae77565c09f399b06455e94e7bcd83d01\33 rmd160 b04fb3adeb207dfcba2dc1db99a8ef6e11d0e211\33 md5 829319325bbdb83f5c81379a8f86f38f \ 34 sha1 cc06fbf8244b9e8d0694cee5bf3be5bdd444b888 \ 35 rmd160 9c483b93ccd106bae6db36b3335fae4e91177aec \ 34 36 ghostscript-fonts-other-6.0.tar.gz \ 35 37 md5 1a643ae62ef166562e4d422b1a601272 \ 36 38 sha1 da62dfcb9c10d96743c7e30c1eebe7166489798c \ 37 39 rmd160 ab60dbf71e7d91283a106c3df381cadfe173082f \ 38 mappingresources4pdf_2unicode_${mrversion}.tar.Z \ 39 md5 59267a7d0b818267c8ce85d1dbc4479a \ 40 sha1 aaf44cb1e5dd2043c932e641b0e41432aee2ca0d \ 41 rmd160 bc1b86e6a5f0e022f88070195eb3e01e167114a7 \ 42 mappingresources4pdf_other_${mrversion}.tar.Z \ 43 md5 202fa0a291fc1f5b50cfa239106c1b92 \ 44 sha1 fc4eabff932c1623f7ee0a34085e79a44d51d0e5 \ 45 rmd160 1e2ea9af6be8b60c9a54963e542fa06ceb2daccd 40 ${mappingresources_commit}.zip \ 41 md5 474705024ad12c5f9566b51fc8c645ba \ 42 sha1 ecab5f607db89e1cdce2eb4d180eb563be666875 \ 43 rmd160 1bb3b507ec48b559e4388553391ebece2468dc73 46 44 47 45 depends_lib port:expat \ 48 46 port:fontconfig \ … … 53 51 port:libidn \ 54 52 port:libpaper \ 55 53 port:libpng \ 54 port:openjpeg \ 56 55 port:tiff \ 57 56 port:zlib 58 57 # port:lcms2 … … 61 60 depends_build port:pkgconfig 62 61 depends_run port:perl5 63 62 63 extract.only ${distname}.tar.gz 64 64 65 post-extract { 66 system "cd ${workpath} && unzip ${distpath}/${mappingresources_commit}.zip" 67 system "cd ${workpath} && unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_2unicode.zip" 68 system "cd ${workpath} && unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_other.zip" 69 65 70 # MacPorts's lcms2 is 2.4 and it doesn't support cmsPluginTHR() yet. 66 71 # foreach d {freetype jbig2dec jpeg lcms2 libpng tiff zlib} 67 foreach d {freetype jbig2dec jpeg libpng tiff zlib} {72 foreach d {freetype jbig2dec jpeg libpng openjpeg tiff zlib} { 68 73 move "${worksrcpath}/${d}" "${worksrcpath}/${d}_local" 69 74 } 70 75 71 76 #move ${workpath}/MappingOther/Adobe-CNS1-ETen-B5 ${workpath}/MappingOther/Adobe-CNS1-ETenms-B5 72 eval copy -force [glob ${workpath}/ ToUnicode/*] ${worksrcpath}/Resource/CMap73 eval copy -force [glob ${workpath}/ MappingOther/*] ${worksrcpath}/Resource/CMap77 eval copy -force [glob ${workpath}/mappingresources4pdf_2unicode/*] ${worksrcpath}/Resource/CMap 78 eval copy -force [glob ${workpath}/mappingresources4pdf_other/*] ${worksrcpath}/Resource/CMap 74 79 } 75 80 76 81 post-patch { 77 82 reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/base/unix-dll.mak 83 reinplace "s|ZLIBDIR=src|ZLIBDIR=${prefix}/include|" configure.ac configure 78 84 79 85 # Ensure that MacPorts perl is used 80 86 fs-traverse f ${worksrcpath} { … … 87 93 use_autoreconf yes 88 94 autoreconf.args -fv 89 95 90 # Make included OpenJPEG uses its own headers rather than the system ones91 configure.cppflags-delete "-I${prefix}/include"92 configure.cppflags-append "-isystem${prefix}/include"93 94 96 configure.args --disable-compile-inits \ 95 97 --disable-cups \ 96 98 --disable-dbus \