most recent changes, diff for ploticus

Index: math/ploticus/Portfile
--- math/ploticus/Portfile (revision 34592)
+++ math/ploticus/Portfile (revision 34593)
@@ -1,8 +1,11 @@
# $Id$

PortSystem 1.0
+
name ploticus
-version 2.31
+set major_version 2
+set minor_version 40
+version ${major_version}.${minor_version}
categories math
maintainers nomaintainer
description plot generation program
@@ -17,14 +20,16 @@
homepage http://ploticus.sourceforge.net/
platforms darwin

-master_sites http://ploticus.sourceforge.net/download/
-distname pl231src
-checksums md5 70712f7f41484db3bfd9210ae7742762
+master_sites sourceforge:${name}
+distname pl${major_version}${minor_version}src
+checksums md5 560bf4ede9d7a132261ba36574434962 \
+ sha1 824860a41a46ad15cc8c6cb37fa6f59176f4e01e \
+ rmd160 4e36b4cff635042213a4693a44fb03298782edfc

-depends_lib lib:libX11:XFree86 lib:XXX:libpng lib:XXX:zlib
+depends_lib lib:libX11:XFree86 port:libpng port:zlib \
+ port:gd2 port:jpeg port:freetype

-patchfiles patch-src__Makefile \
- patch-src__gd16.c
+patchfiles patch-src-Makefile.diff

post-patch {
reinplace s|__PREFIX__|${prefix}| ${worksrcpath}/src/Makefile
@@ -34,3 +39,8 @@

build.dir ${worksrcpath}/src
build.target
+
+post-destroot {
+ xinstall -d ${destroot}${prefix}/share/man/man1
+ xinstall -m 444 man/man1/pl.1 ${destroot}${prefix}/share/man/man1/ploticus.1
+}