[129703] trunk/dports/print/pdflib/Portfile
larryv at macports.org
larryv at macports.org
Thu Dec 18 15:24:11 PST 2014
Revision: 129703
https://trac.macports.org/changeset/129703
Author: larryv at macports.org
Date: 2014-12-18 15:24:11 -0800 (Thu, 18 Dec 2014)
Log Message:
-----------
pdflib: Rearrange and reformat
Modified Paths:
--------------
trunk/dports/print/pdflib/Portfile
Modified: trunk/dports/print/pdflib/Portfile
===================================================================
--- trunk/dports/print/pdflib/Portfile 2014-12-18 23:07:17 UTC (rev 129702)
+++ trunk/dports/print/pdflib/Portfile 2014-12-18 23:24:11 UTC (rev 129703)
@@ -1,132 +1,135 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name pdflib
-version 7.0.5
-revision 1
-categories print
-license Restrictive
-platforms darwin
-maintainers nomaintainer
-use_parallel_build yes
-description PDFlib Lite (Source Code) is a subset of PDFlib
-long_description \
- ${description}, a library of C routines that allow to programmatically\
- generate PDF, the Adobe's Portable Document File format.
+name pdflib
+version 7.0.5
+revision 1
+categories print
+platforms darwin
+license Restrictive
+maintainers nomaintainer
-homepage http://www.pdflib.com/download/free-software/pdflib-lite-7/
-master_sites http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} [strsed ${version} s/\[^0-9.\].*$//]]/
-distname PDFlib-Lite-${version}
+description PDFlib Lite (Source Code) is a subset of PDFlib
+long_description ${description}, a library of C routines that allow \
+ to programmatically generate PDF, the Adobe's \
+ Portable Document File format.
+homepage http://www.pdflib.com/download/free-software/pdflib-lite-7/
+master_sites http://www.pdflib.com/binaries/PDFlib/[string map {"." ""} [strsed ${version} s/\[^0-9.\].*$//]]/
+distname PDFlib-Lite-${version}
checksums md5 34a1cc89e2cfdc1e43ba57019e442a90 \
sha1 5b2bf5edc49dba3da0997ade0e191511a37fae01 \
rmd160 7f3862e70e2f74cf3143ea61e051c30e518ab2eb
-patchfiles \
- patch-perl_Makefile.diff \
- patch-libtool.diff
+patchfiles patch-perl_Makefile.diff \
+ patch-libtool.diff
-test.run yes
+post-patch {
+ reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" \
+ ${worksrcpath}/configure
+}
-configure.args --without-java --without-perl --without-py --without-tcl --without-ruby
-configure.ccache no
+configure.ccache no
+configure.args --without-java \
+ --without-perl \
+ --without-py \
+ --without-ruby \
+ --without-tcl
# The existence of tiff header files interferes with PDFLib (#11789).
-configure.cppflags-delete -I${prefix}/include
-configure.cppflags-append -isystem${prefix}/include
+configure.cppflags-delete -I${prefix}/include
+configure.cppflags-append -isystem${prefix}/include
-post-patch {
- reinplace "s/PYTHONLIBDIR=`cat << EOF | python/PYTHONLIBDIR=`cat << EOF | \$PYTHONBIN/g" \
- ${worksrcpath}/configure
-}
+use_parallel_build yes
+test.run yes
+
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/
- file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/
+ file copy ${worksrcpath}/doc/pdflib ${destroot}${prefix}/share/doc/${name}
}
variant java description {Enable Java language binding} {
- configure.args-delete --without-java
- configure.args-append --with-java=yes
+ configure.args-delete --without-java
+ configure.args-append --with-java=yes
}
variant perl description {Enable Perl language binding} {
- depends_lib path:bin/perl:perl5
- configure.args-delete --without-perl
- configure.args-append --with-perl=${prefix}/bin/perl
+ depends_lib path:bin/perl:perl5
+ configure.args-delete --without-perl
+ configure.args-append --with-perl=${prefix}/bin/perl
}
variant python24 description {Enable Python language binding using version 2.4} conflicts python25 python26 {
- set pyversion 2.4
- depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
- configure.args-delete --without-py
- configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
- configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
-
- post-destroot {
- # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
- xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
- foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
- file rename ${file} ${destroot}${prefix}/lib/python2.4/
- }
- }
+ set pyversion 2.4
+ depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+ configure.args-delete --without-py
+ configure.args-append --with-py=${prefix} \
+ --with-pyincl=${prefix}/include/python${pyversion}
+ configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
+
+ post-destroot {
+ # ${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/ is a link, which MacPorts can not install into
+ xinstall -d -m 755 ${destroot}${prefix}/lib/python2.4/
+ foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.4/lib/python2.4/* ] {
+ file rename ${file} ${destroot}${prefix}/lib/python2.4/
+ }
+ }
}
variant python25 description {Enable Python language binding using version 2.5} conflicts python24 python26 python27 {
- set pyversion 2.5
- depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
- configure.args-delete --without-py
- configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
- configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
-
- post-destroot {
- # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
- xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
- foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
- file rename ${file} ${destroot}${prefix}/lib/python2.5/
- }
- }
+ set pyversion 2.5
+ depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+ configure.args-delete --without-py
+ configure.args-append --with-py=${prefix} --with-pyincl=${prefix}/include/python${pyversion}
+ configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
+
+ post-destroot {
+ # ${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/ is a link, which MacPorts can not install into
+ xinstall -d -m 755 ${destroot}${prefix}/lib/python2.5/
+ foreach file [ glob ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5/* ] {
+ file rename ${file} ${destroot}${prefix}/lib/python2.5/
+ }
+ }
}
variant python26 description {Enable Python language binding using version 2.6} conflicts python24 python25 python27 {
- set pyversion 2.6
- depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
- configure.args-delete --without-py
- configure.args-append \
- --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
- --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
- configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
+ set pyversion 2.6
+ depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+ configure.args-delete --without-py
+ configure.args-append --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
+ --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
+ configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
}
variant python27 description {Enable Python language binding using version 2.7} conflicts python24 python25 python26 {
- set pyversion 2.7
- depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
- configure.args-delete --without-py
- configure.args-append \
- --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
- --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
- configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
+ set pyversion 2.7
+ depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+ configure.args-delete --without-py
+ configure.args-append --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
+ --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
+ configure.env-append PYTHONBIN=${prefix}/bin/python${pyversion}
}
variant tcl description {Enable Tcl language binding} {
- depends_lib-append path:bin/tclsh:tcl
- configure.args-delete --without-tcl
- configure.args-append --with-tcl=${prefix}/bin/tclsh
+ depends_lib-append path:bin/tclsh:tcl
+ configure.args-delete --without-tcl
+ configure.args-append --with-tcl=${prefix}/bin/tclsh
}
variant ruby description {Enable Ruby language binding} {
- depends_lib-append port:ruby
- pre-configure {
+ depends_lib-append port:ruby
+ pre-configure {
set rubyIncl [file dirname [glob ${prefix}/lib/ruby/*/*/ruby.h]]
- configure.args-delete --without-ruby
- configure.args-append --with-ruby=${prefix} --with-rubyincl=${rubyIncl}
- }
+ configure.args-delete --without-ruby
+ configure.args-append --with-ruby=${prefix} --with-rubyincl=${rubyIncl}
+ }
}
if {[variant_isset universal]} {
- depends_build-append port:libtool
+ depends_build-append port:libtool
post-configure {
file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
}
@@ -134,4 +137,4 @@
# The web page says “Note that PDFlib Lite is no longer maintained by PDFlib GmbH”
# and that they “will not release new and updated versions”.
-livecheck.type none
+livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141218/cee00345/attachment-0001.html>
More information about the macports-changes
mailing list