[48705] trunk/dports/devel
blb at macports.org
blb at macports.org
Fri Mar 27 01:20:36 PDT 2009
Revision: 48705
http://trac.macports.org/changeset/48705
Author: blb at macports.org
Date: 2009-03-27 01:20:36 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
New port - devel/lua-gd, Lua interface to the gd library; ticket #14752
Modified Paths:
--------------
trunk/dports/devel/subversion-python26bindings/Portfile
trunk/dports/devel/subversion-python26bindings/files/svn-python.pth
Added Paths:
-----------
trunk/dports/devel/lua-gd/
trunk/dports/devel/lua-gd/Portfile
trunk/dports/devel/lua-gd/files/
trunk/dports/devel/lua-gd/files/patch-Makefile.diff
trunk/dports/devel/subversion-python26bindings/
Added: trunk/dports/devel/lua-gd/Portfile
===================================================================
--- trunk/dports/devel/lua-gd/Portfile (rev 0)
+++ trunk/dports/devel/lua-gd/Portfile 2009-03-27 08:20:36 UTC (rev 48705)
@@ -0,0 +1,47 @@
+# $Id$
+
+PortSystem 1.0
+name lua-gd
+version 2.0.33r2
+categories devel graphics
+maintainers nomaintainer
+description Lua interface to the gd library
+long_description \
+ Lua-GD is a set of Lua bindings to the Thomas Boutell's gd library that \
+ allows your code to quickly draw complete images with lines, polygons, \
+ arcs, text, multiple colors, cut and paste from other images, flood \
+ fills, read in or write out images in the PNG, JPEG or GIF format. It is \
+ not a kitchen-sink graphics package, but it does include most frequently \
+ requested features, including both truecolor and palette images, \
+ resampling (smooth resizing of truecolor images) and so forth.
+
+platforms darwin
+
+homepage http://lua-gd.luaforge.net/
+master_sites http://luaforge.net/frs/download.php/1592/ \
+ sourceforge
+
+checksums md5 69e9c07ce208ce13d4373177c2e24df0 \
+ sha1 5e7a4e3a62c005de6d243e891411175957ff087e \
+ rmd160 806cd4210a6eb6d4da40167c5b1225fdaf786f71
+
+depends_lib port:lua port:gd2
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+pre-destroot {
+ # This needs to be updated when lua's version goes past 5.1.x
+ xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
+}
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} \
+ ${destroot}${prefix}/share/examples/${name}
+ eval copy [glob ${worksrcpath}/doc/*] ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} COPYING README \
+ ${destroot}${prefix}/share/doc/${name}
+ eval copy [glob ${worksrcpath}/demos/*] \
+ ${destroot}${prefix}/share/examples/${name}
+}
+
Property changes on: trunk/dports/devel/lua-gd/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/lua-gd/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-gd/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/lua-gd/files/patch-Makefile.diff 2009-03-27 08:20:36 UTC (rev 48705)
@@ -0,0 +1,33 @@
+--- Makefile.orig 2006-05-03 19:03:48.000000000 -0600
++++ Makefile 2009-03-27 02:05:15.000000000 -0600
+@@ -33,11 +33,11 @@
+ # change the next ones.
+
+ # Name of .pc file. "lua5.1" on Debian/Ubuntu
+-LUAPKG=lua5.1
++LUAPKG=lua
+ OUTFILE=gd.so
+ CFLAGS=`gdlib-config --cflags` `pkg-config $(LUAPKG) --cflags` -O3 -Wall
+ GDFEATURES=`gdlib-config --features |sed -e "s/GD_/-DGD_/g"`
+-LFLAGS=-shared `gdlib-config --ldflags` `gdlib-config --libs` \
++LFLAGS=-bundle `gdlib-config --ldflags` `gdlib-config --libs` \
+ `pkg-config $(LUAPKG) --libs` -lgd
+ INSTALL_PATH=`pkg-config $(LUAPKG) --variable=INSTALL_CMOD`
+
+@@ -63,6 +63,7 @@
+ #INSTALL_PATH="C:/Program Files/lua/"
+ # ---------------------------------------------------------------------------
+
++DESTDIR=
+
+ all: $(OUTFILE)
+
+@@ -71,7 +72,7 @@
+ lua test_features.lua
+
+ install: $(OUTFILE)
+- install -s $(OUTFILE) $(INSTALL_PATH)
++ install $(OUTFILE) $(DESTDIR)$(INSTALL_PATH)
+
+ clean:
+ rm -f $(OUTFILE) *.o
Modified: trunk/dports/devel/subversion-python26bindings/Portfile
===================================================================
--- trunk/dports/devel/subversion-python25bindings/Portfile 2009-02-27 23:52:14 UTC (rev 47395)
+++ trunk/dports/devel/subversion-python26bindings/Portfile 2009-03-27 08:20:36 UTC (rev 48705)
@@ -2,7 +2,7 @@
PortSystem 1.0
-name subversion-python25bindings
+name subversion-python26bindings
version 1.5.6
categories devel python
platforms darwin
@@ -25,17 +25,16 @@
depends_lib port:expat port:neon \
port:apr port:apr-util \
- port:db46 port:subversion \
- port:python25 \
- port:py25-bsddb \
+ port:subversion \
+ port:python26 \
port:gettext port:libiconv \
port:serf port:cyrus-sasl2
post-patch {
- system "cd ${worksrcpath}; find build* Makefile.in subversion/bindings/swig/python -type f -print0 | xargs -0 perl -w -p -i -e 's/libsvn_swig_py/libsvn_swig_py25/g'"
+ system "cd ${worksrcpath}; find build* Makefile.in subversion/bindings/swig/python -type f -print0 | xargs -0 perl -w -p -i -e 's/libsvn_swig_py/libsvn_swig_py26/g'"
file rename \
${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py \
- ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py25
+ ${worksrcpath}/subversion/bindings/swig/python/libsvn_swig_py26
}
configure.args --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46 \
@@ -45,7 +44,7 @@
--disable-neon-version-check --with-serf=${prefix} \
--with-sasl=${prefix}
-configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.5
+configure.env ac_cv_path_PYTHON=${prefix}/bin/python2.6
use_parallel_build yes
build.target swig-py
destroot.target install-swig-py DESTDIR=${destroot}
@@ -72,12 +71,6 @@
${worksrcpath}/libtool
}
-variant no_bdb description {Build without support for BerkeleyDB repositories} {
- depends_lib-delete port:db46 port:py25-bsddb
- configure.args-delete --with-berkeley-db=${prefix}/include/db46:${prefix}/lib/db46
- configure.args-append --without-berkeley-db
- }
-
variant no_neon description {Build without neon (http/https support)} {
depends_lib-delete port:neon
configure.args-append --without-neon
@@ -85,7 +78,7 @@
}
post-destroot {
- set PYTHON_PATH ${prefix}/lib/python2.5
+ set PYTHON_PATH ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6
xinstall -m 755 -d ${destroot}${PYTHON_PATH}/site-packages
xinstall -m 755 ${portpath}/${filesdir}/svn-python.pth \
@@ -94,7 +87,7 @@
${destroot}${PYTHON_PATH}/site-packages/svn-python.pth
file rename "${destroot}/${prefix}/lib/svn-python" \
- "${destroot}/${prefix}/lib/svn-python2.5"
+ "${destroot}/${prefix}/lib/svn-python2.6"
}
# 10.3 says -> CarbonCore/MacTypes.h: No such file or directory
Modified: trunk/dports/devel/subversion-python26bindings/files/svn-python.pth
===================================================================
--- trunk/dports/devel/subversion-python25bindings/files/svn-python.pth 2009-02-27 23:52:14 UTC (rev 47395)
+++ trunk/dports/devel/subversion-python26bindings/files/svn-python.pth 2009-03-27 08:20:36 UTC (rev 48705)
@@ -1 +1 @@
- at PREFIX@/lib/svn-python2.5
+ at PREFIX@/lib/svn-python2.6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090327/fe0e6257/attachment.html>
More information about the macports-changes
mailing list