<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/601681e54d1948c5ffa325910131d512ce022c32">https://github.com/macports/macports-ports/commit/601681e54d1948c5ffa325910131d512ce022c32</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 601681e netpbm: Build and install manpages
</span>601681e is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 601681e54d1948c5ffa325910131d512ce022c32
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Jun 11 03:16:33 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> netpbm: Build and install manpages
</span>---
graphics/netpbm/Portfile | 60 ++++++++++++++-------------------
graphics/netpbm/files/manweb.conf.in | 2 --
graphics/netpbm/files/patch-manweb.diff | 11 ------
3 files changed, 26 insertions(+), 47 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/netpbm/Portfile b/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 167985e..795e83c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/netpbm/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,9 +21,23 @@ long_description A whole bunch of utilities for primitive manipulation \
</span> homepage http://netpbm.sourceforge.net/
fetch.type svn
<span style='display:block; white-space:pre;background:#ffe0e0;'>-svn.url https://svn.code.sf.net/p/netpbm/code/advanced/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+svn.url https://svn.code.sf.net/p/netpbm/code/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+svn.method checkout
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+svn.post_args-append --non-recursive ${svn.dir}
</span> worksrcdir advanced
<span style='display:block; white-space:pre;background:#e0ffe0;'>+post-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${svn.dir} "${svn.cmd} ${svn.pre_args} update -r ${svn.revision} advanced userguide"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Delete the manpages that aren't for this subport.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set libmanpages {libnetpbm pam pbm pgm pnm ppm}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach f [glob ${svn.dir}/userguide/*.html] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {([lsearch -exact ${libmanpages} [file rootname [file tail ${f}]]] == -1) == (${subport} ne ${name})} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> patchfiles patch-converter-other-giftopnm.c-strcaseeq.diff \
patch-lib-Makefile.diff \
patch-other-pamx-Makefile.diff
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -99,12 +113,18 @@ build.type gnu
</span>
set pkgtargets {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# The tests can only be run after things have been destrooted ("packaged").
</span> post-build {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Build manpages from html files.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath}/userguide "${build.cmd} MAKEMAN='${worksrcpath}/buildtools/makeman -v' USERGUIDE=. -f ${worksrcpath}/buildtools/manpage.mk manpages"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The tests can only be run after things have been destrooted ("packaged").
</span> system -W ${worksrcpath} "${build.cmd} ${pkgtargets} pkgdir=${destroot}${prefix}"
}
destroot {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install manpages.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath}/userguide "${build.cmd} MANDIR=${destroot}${prefix}/share/man USERGUIDE=. -f ${worksrcpath}/buildtools/manpage.mk installman"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> move ${destroot}${prefix}/misc ${destroot}${prefix}/share/${name}
# Fix ownership of files installed during the build phase.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,11 +133,10 @@ destroot {
</span> }
if {${subport} eq ${name}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 3
</span> installs_libs no
# TODO: Don't build libnetpbm again in netpbm subport.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # TODO: Install real manpages. See doc/USERDOC.
</span>
depends_lib-append port:jasper \
port:jbigkit \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -139,8 +158,6 @@ if {${subport} eq ${name}} {
</span> lappend pkgtargets install.bin
# Install data files.
lappend pkgtargets install.data
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manpages.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets install.man
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -185,41 +202,22 @@ if {${subport} eq ${name}} {
</span> }
subport libnetpbm {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # TODO: descriptions
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span> license Permissive
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: descriptions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Remove programs from subdirs, leaving only the library.
#patchfiles-append patch-${subport}-GNUmakefile.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Look for manweb.conf in ${prefix}/etc instead of /etc.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #patchfiles-append patch-manweb.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/manweb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> build.target lib/all
# Install libraries and headers.
lappend pkgtargets install-dev
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manweb program.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets install.bin
</span> # Install rgb.txt data file.
lappend pkgtargets lib/install.data
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manpage for manweb.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets install.man1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manpages for libnetpbm and file formats.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets lib/install.man
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manweb URL file for manweb.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets install.manweb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manweb URL file for netpbm (and "doc" which gets deleted later).
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #lappend pkgtargets install.manwebmain
</span>
post-build {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Build manweb.conf like installnetpbm.pl would.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #copy ${filespath}/manweb.conf.in ${build.dir}/manweb.conf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #reinplace "s|@PREFIX@|${prefix}|g" ${build.dir}/manweb.conf
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Build netpbm-config and netpbm.pc like installnetpbm.pl would.
copy ${worksrcpath}/buildtools/config_template ${build.dir}/netpbm-config
copy ${worksrcpath}/buildtools/pkgconfig_template ${build.dir}/netpbm.pc
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -235,12 +233,6 @@ subport libnetpbm {
</span> }
post-destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Don't install a data file into ${prefix}/bin; that's weird.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #delete ${destroot}${prefix}/bin/doc.url
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Install manweb.conf.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #xinstall -m 644 ${build.dir}/manweb.conf ${destroot}${prefix}/etc/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> # Install netpbm-config and netpbm.pc.
xinstall -m 755 ${build.dir}/netpbm-config ${destroot}${prefix}/bin/
xinstall -m 644 ${build.dir}/netpbm.pc ${destroot}${prefix}/lib/pkgconfig/
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/netpbm/files/manweb.conf.in b/graphics/netpbm/files/manweb.conf.in
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index fbe22bd..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/netpbm/files/manweb.conf.in
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,2 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#Configuration file for Manweb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-webdir=@PREFIX@/share/man/web
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/netpbm/files/patch-manweb.diff b/graphics/netpbm/files/patch-manweb.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 6aa743b..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/netpbm/files/patch-manweb.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- manweb.orig 2006-08-18 22:12:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ manweb 2015-06-22 22:31:45.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -316,7 +316,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (defined($envVblValue)) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $confFile = $envVblValue;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- $confFile = "/etc/manweb.conf";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ $confFile = "@PREFIX@/etc/manweb.conf";
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span></pre><pre style='margin:0'>
</pre>