[77459] trunk/dports/python/py31-djvubind/Portfile
raphael at macports.org
raphael at macports.org
Thu Mar 31 06:08:16 PDT 2011
Revision: 77459
http://trac.macports.org/changeset/77459
Author: raphael at macports.org
Date: 2011-03-31 06:08:14 -0700 (Thu, 31 Mar 2011)
Log Message:
-----------
py31-djvubind:
* update to version 1.1.0
* fix handling of configuration file
Modified Paths:
--------------
trunk/dports/python/py31-djvubind/Portfile
Modified: trunk/dports/python/py31-djvubind/Portfile
===================================================================
--- trunk/dports/python/py31-djvubind/Portfile 2011-03-31 12:47:10 UTC (rev 77458)
+++ trunk/dports/python/py31-djvubind/Portfile 2011-03-31 13:08:14 UTC (rev 77459)
@@ -5,7 +5,7 @@
PortGroup python31 1.0
name py31-djvubind
-version 1.0.2
+version 1.1.0
platforms darwin
supported_archs noarch
maintainers raphael openmaintainer
@@ -30,9 +30,9 @@
master_sites googlecode:djvubind
-checksums md5 a66de2d1f17e177565b98fb552552ef2 \
- sha1 fac7d4e0e555402454c9ad025a1a59aeb3fc5bea \
- rmd160 b88b396fbd50cb866ee56b9ae7328d82d693f57c
+checksums md5 90f90c60723581ee9f322e06ec77c2d2 \
+ sha1 69886f4ab3767220e4f2cce5016f20160e5f63b4 \
+ rmd160 2b45ef90d98204097131e9ec38361038a00f8780
patchfiles patch-setup.py.diff
post-patch { reinplace "s|/usr/bin/env python3|${python.bin}|" ${worksrcpath}/bin/djvubind
@@ -40,6 +40,8 @@
python.link_binaries_suffix
+set sysconfigdir etc/djvubind
+
post-destroot { ln -s "${python.prefix}/share/man/man1/djvubind.1.gz" "${destroot}${prefix}/share/man/man1/djvubind${python.link_binaries_suffix}.1.gz"
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
@@ -47,7 +49,13 @@
README \
docs/changelog \
${docdir}
- set sysconfigdir ${destroot}${prefix}/etc/djvubind
- xinstall -d ${sysconfigdir}
- ln -s "${python.prefix}/etc/djvubind/config" "${sysconfigdir}/config"
+ xinstall -d ${destroot}${prefix}/${sysconfigdir}
+ move ${destroot}${python.prefix}/etc/djvubind/config \
+ ${destroot}${prefix}/${sysconfigdir}/config.sample
}
+
+post-activate {
+ if {![file exists ${prefix}/${sysconfigdir}/config]} {
+ copy ${prefix}/${sysconfigdir}/config.sample ${prefix}/${sysconfigdir}/config
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110331/a81c97d8/attachment-0001.html>
More information about the macports-changes
mailing list