[143423] trunk/dports/databases/postgresql_autodoc

mojca at macports.org mojca at macports.org
Sat Dec 12 10:52:49 PST 2015


Revision: 143423
          https://trac.macports.org/changeset/143423
Author:   mojca at macports.org
Date:     2015-12-12 02:31:21 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
postgresql_autodoc: switch to perl5.22 using the perl5 portgroup (#48365), checksums, lib->run dependencies, change the patch for prefix

Modified Paths:
--------------
    trunk/dports/databases/postgresql_autodoc/Portfile

Added Paths:
-----------
    trunk/dports/databases/postgresql_autodoc/files/patch-Makefile.diff

Removed Paths:
-------------
    trunk/dports/databases/postgresql_autodoc/files/patch-make.diff

Modified: trunk/dports/databases/postgresql_autodoc/Portfile
===================================================================
--- trunk/dports/databases/postgresql_autodoc/Portfile	2015-12-12 10:25:01 UTC (rev 143422)
+++ trunk/dports/databases/postgresql_autodoc/Portfile	2015-12-12 10:31:21 UTC (rev 143423)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           perl5 1.0
 
 name                postgresql_autodoc
 version             1.41
@@ -17,30 +18,33 @@
                     databases. It supports output in HTML, GraphViz, SGML \
                     DocBook and DIA formats.
 
+# doesn't work
 homepage            http://www.rbt.ca/autodoc/
 master_sites        http://www.rbt.ca/autodoc/binaries/
 
-checksums           md5    a23ae4a49bfd0c14375b3ea6e04cd5b9 \
-                    sha1   66ef9804854bbec54bba7788fe3ba90e5a47abe2 \
-                    rmd160 c588ef93e955b5c41b6175f3f2762c35accbb567
+checksums           rmd160  c588ef93e955b5c41b6175f3f2762c35accbb567 \
+                    sha256  8fd8300a1913bd60be7b8214aadc8e193575c1fabe7797cbb6dcaed2b90eb8e9
 
-depends_lib         port:perl5.16 \
-                    port:p5.16-dbi \
-                    port:p5.16-dbd-pg \
-                    port:p5.16-html-template \
-                    port:p5.16-term-readkey
+perl5.branches      5.22
+
+depends_lib         port:perl${perl5.major}
+depends_run         port:p${perl5.major}-dbi \
+                    port:p${perl5.major}-dbd-pg \
+                    port:p${perl5.major}-html-template \
+                    port:p${perl5.major}-term-readkey
 worksrcdir          ${name}
 
-patchfiles          patch-make.diff
+patchfiles          patch-Makefile.diff
 
+post-patch {
+    reinplace -W ${worksrcpath} "s|__PREFIX__|${prefix}|" Makefile
+}
+
 use_configure       no
 
-build {
-    reinplace -E "s#/usr/local#${prefix}#g" \
-        Makefile
-}
+build               {}
 
-destroot.args       PERL=${prefix}/bin/perl5.16
+destroot.args       PERL=${perl5.bin}
 destroot.destdir    DESTDIR=${destroot}
 
 livecheck.type      regex

Copied: trunk/dports/databases/postgresql_autodoc/files/patch-Makefile.diff (from rev 143422, trunk/dports/databases/postgresql_autodoc/files/patch-make.diff)
===================================================================
--- trunk/dports/databases/postgresql_autodoc/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/databases/postgresql_autodoc/files/patch-Makefile.diff	2015-12-12 10:31:21 UTC (rev 143423)
@@ -0,0 +1,32 @@
+--- Makefile.orig
++++ Makefile
+@@ -2,7 +2,7 @@
+ 
+ # install configuration
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX = __PREFIX__
+ BINDIR = ${PREFIX}/bin
+ DATADIR = ${PREFIX}/share/postgresql_autodoc
+ MANDIR = ${PREFIX}/share/man/man1
+@@ -13,7 +13,6 @@
+ BINARY = postgresql_autodoc
+ SOURCE = ${BINARY}.pl
+ MANPAGE = ${BINARY}.1
+-MANPAGE_SOURCE = ${MANPAGE}.in
+ RELEASE_FILES = Makefile ChangeLog ${SOURCE} ${TEMPLATES} ${MANPAGE}
+ RELEASE_DIR=postgresql_autodoc
+ 
+@@ -23,11 +22,7 @@
+ SED = $$(which sed)
+ 
+ 
+-all: ${BINARY} ${MANPAGE}
+-
+-${MANPAGE}: ${MANPAGE_SOURCE}
+-	${SED} -e "s,@@TEMPLATE-DIR@@,${DATADIR}," \
+-		${MANPAGE_SOURCE} > ${MANPAGE}
++all: ${BINARY}
+ 
+ 
+ ${BINARY}: ${SOURCE}

Deleted: trunk/dports/databases/postgresql_autodoc/files/patch-make.diff
===================================================================
--- trunk/dports/databases/postgresql_autodoc/files/patch-make.diff	2015-12-12 10:25:01 UTC (rev 143422)
+++ trunk/dports/databases/postgresql_autodoc/files/patch-make.diff	2015-12-12 10:31:21 UTC (rev 143423)
@@ -1,23 +0,0 @@
---- Makefile.orig	2012-01-05 17:31:42.000000000 +0200
-+++ Makefile	2013-07-26 19:19:21.000000000 +0300
-@@ -13,7 +13,6 @@
- BINARY = postgresql_autodoc
- SOURCE = ${BINARY}.pl
- MANPAGE = ${BINARY}.1
--MANPAGE_SOURCE = ${MANPAGE}.in
- RELEASE_FILES = Makefile ChangeLog ${SOURCE} ${TEMPLATES} ${MANPAGE}
- RELEASE_DIR=postgresql_autodoc
- 
-@@ -23,11 +22,7 @@
- SED = $$(which sed)
- 
- 
--all: ${BINARY} ${MANPAGE}
--
--${MANPAGE}: ${MANPAGE_SOURCE}
--	${SED} -e "s,@@TEMPLATE-DIR@@,${DATADIR}," \
--		${MANPAGE_SOURCE} > ${MANPAGE}
-+all: ${BINARY}
- 
- 
- ${BINARY}: ${SOURCE}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/b4145ce6/attachment.html>


More information about the macports-changes mailing list