[51099] trunk/dports/games/pennmush

blb at macports.org blb at macports.org
Sun May 17 17:37:07 PDT 2009


Revision: 51099
          http://trac.macports.org/changeset/51099
Author:   blb at macports.org
Date:     2009-05-17 17:37:07 -0700 (Sun, 17 May 2009)
Log Message:
-----------
games/pennmush - version update to 1.8.3p9, ticket #15237

Modified Paths:
--------------
    trunk/dports/games/pennmush/Portfile

Added Paths:
-----------
    trunk/dports/games/pennmush/files/patch-game_txt_Makefile

Removed Paths:
-------------
    trunk/dports/games/pennmush/files/patch-Configure.diff
    trunk/dports/games/pennmush/files/patch-Makefile.SH.diff

Modified: trunk/dports/games/pennmush/Portfile
===================================================================
--- trunk/dports/games/pennmush/Portfile	2009-05-18 00:25:38 UTC (rev 51098)
+++ trunk/dports/games/pennmush/Portfile	2009-05-18 00:37:07 UTC (rev 51099)
@@ -2,7 +2,7 @@
 
 PortSystem          1.0
 name                pennmush
-version             1.8.1p4
+version             1.8.3p9
 set branch          [join [lrange [split ${version} .] 0 1] .]
 categories          games
 maintainers         nomaintainer
@@ -16,29 +16,72 @@
    little disk space. From a user standpoint they offer many similar features \
    and a very similar command parser.
 
+platforms           darwin
+
 homepage            http://www.pennmush.org/
 master_sites        http://download.pennmush.org/Source/ \
                     http://download.pennmush.org/Source/oldsrc/${branch}/
-distname            pennmush
-distfiles           pennmush-1.8.1p4${extract.suffix}
 
-checksums           md5 9078100d019bffa0aac2baeb0fa5f6e4
+checksums           md5     88dc8ec2c07171831d9d0959549d82e3 \
+                    sha1    a06f18221a40ed847bba7e30935c38937309fabe \
+                    rmd160  de5777b8b2c592fecc23ade2c5cceccfee17086b
 
-patchfiles          patch-Configure.diff patch-Makefile.SH.diff
+depends_lib         port:openssl port:pcre path:bin/perl:perl5 port:gettext
 
-configure.cmd       sh Configure -d
-configure.pre_args  {}
+patchfiles          patch-game_txt_Makefile
 
-pre-build {
-   xinstall options.h.dist options.h
+configure.args      --without-mysql --without-postgresql --without-sqlite3 \
+                    --with-perl=${prefix}/bin/perl --with-ssl=${prefix} \
+                    --with-pcre=${prefix}
+post-configure {
+   copy ${worksrcpath}/options.h.dist ${worksrcpath}/options.h
+}
 
-   xinstall game/mushcnf.dst game/mush.cnf
-   xinstall game/aliascnf.dst game/alias.cnf
-   xinstall game/restrictcnf.dst game/restrict.cnf
+post-build {
+   system "cd ${worksrcpath}/game/txt && make clean all"
+}
 
-   reinplace "s|GAMEDIR=|GAMEDIR=${prefix}/pennmush|g" game/restart
+set pennmush_install_dir ${prefix}/libexec/${name}
+
+# Do our own install since the Makefiles aren't quite up to snuff for
+# full autoconf use yet...
+destroot {
+   global pennmush_install_dir
+   xinstall -m 755 -d ${destroot}${pennmush_install_dir}
+   eval copy [glob ${worksrcpath}/game/*] ${destroot}${pennmush_install_dir}
+   xinstall -m 755 ${worksrcpath}/src/netmud \
+      ${destroot}${pennmush_install_dir}/netmush
+   xinstall -m 755 ${worksrcpath}/src/info_slave \
+      ${destroot}${pennmush_install_dir}
+   xinstall -m 755 ${worksrcpath}/utils/ln-dir.sh \
+      ${destroot}${pennmush_install_dir}
+   reinplace "s|GAMEDIR=|GAMEDIR=${pennmush_install_dir}|g" \
+      ${destroot}${pennmush_install_dir}/restart
+   delete ${destroot}${pennmush_install_dir}/mush.cnf
 }
 
-destroot.destdir    GLOBAL_INSTALL=${destroot}${prefix}/pennmush
-destroot.target     globalinstall
+post-activate {
+   global pennmush_install_dir
+   if {![file exists ${pennmush_install_dir}/mush.cnf]} {
+      copy ${pennmush_install_dir}/mushcnf.dst ${pennmush_install_dir}/mush.cnf
+   }
+}
 
+variant mysql5 description {Use MySQL for database} {
+   depends_lib-append      port:mysql5
+   configure.args-delete   --without-mysql
+   configure.args-append   --with-mysql=${prefix}/bin/mysql_config5
+}
+
+variant postgresql83 description {Use PostGreSQL for database} {
+   depends_lib-append      port:postgresql83
+   configure.args-delete   --without-postgresql
+   configure.args-append   --with-postgresql=${prefix}/lib/postgresql83/bin/pg_config
+}
+
+variant sqlite3 description {Use SQLite3 for database} {
+   depends_lib-append      port:sqlite3
+   configure.args-delete   --without-sqlite3
+   configure.args-append   --with-sqlite3=${prefix}
+}
+

Deleted: trunk/dports/games/pennmush/files/patch-Configure.diff
===================================================================
--- trunk/dports/games/pennmush/files/patch-Configure.diff	2009-05-18 00:25:38 UTC (rev 51098)
+++ trunk/dports/games/pennmush/files/patch-Configure.diff	2009-05-18 00:37:07 UTC (rev 51099)
@@ -1,40 +0,0 @@
---- Configure.orig	2006-01-15 19:21:24.000000000 +0100
-+++ Configure	2006-01-15 20:57:02.000000000 +0100
-@@ -853,10 +853,10 @@
- case "$fastread$alldone" in
- yescont|yesexit) ;;
- *)
--	if test ! -t 0; then
--		echo "Say 'sh Configure', not 'sh <Configure'"
--		exit 1
--	fi
-+#	if test ! -t 0; then
-+#		echo "Say 'sh Configure', not 'sh <Configure'"
-+#		exit 1
-+#	fi
- 	;;
- esac
- 
-@@ -7279,14 +7279,14 @@
- to configure things, do it as a shell escape now (e.g. !vi config.sh).
- 
- EOM
--	rp="Press return or use a shell escape to edit config.sh:"
--	. UU/myread
--	nostick=''
--	case "$ans" in
--	'') ;;
--	*) : in case they cannot read
--		sh 1>&4 -c "$ans";;
--	esac
-+#	rp="Press return or use a shell escape to edit config.sh:"
-+#	. UU/myread
-+#	nostick=''
-+#	case "$ans" in
-+#	'') ;;
-+#	*) : in case they cannot read
-+#		sh 1>&4 -c "$ans";;
-+#	esac
- 	;;
- esac
- 

Deleted: trunk/dports/games/pennmush/files/patch-Makefile.SH.diff
===================================================================
--- trunk/dports/games/pennmush/files/patch-Makefile.SH.diff	2009-05-18 00:25:38 UTC (rev 51098)
+++ trunk/dports/games/pennmush/files/patch-Makefile.SH.diff	2009-05-18 00:37:07 UTC (rev 51099)
@@ -1,11 +0,0 @@
---- Makefile.SH.orig	2006-01-15 21:15:47.000000000 +0100
-+++ Makefile.SH	2006-01-15 21:15:54.000000000 +0100
-@@ -294,7 +294,7 @@
- 	$(INSTALL) config.sh $(GLOBAL_INSTALL)/config.sh
- 	$(INSTALL) src/netmud $(GLOBAL_INSTALL)/netmush
- 	$(INSTALL) src/info_slave utils/ln-dir.sh $(GLOBAL_INSTALL)
--	$(CHMOD) a+rX -R $(GLOBAL_INSTALL)
-+	$(CHMOD) -R a+rX $(GLOBAL_INSTALL)
- 	@echo "** Files installed in $(GLOBAL_INSTALL). Feel free to move them."
- 	@echo "** You can run $(GLOBAL_INSTALL)/ln-dir.sh to create a user directory,"
- 	@echo "** or symlink that to somewhere easier to run. You may wish to strip them."

Added: trunk/dports/games/pennmush/files/patch-game_txt_Makefile
===================================================================
--- trunk/dports/games/pennmush/files/patch-game_txt_Makefile	                        (rev 0)
+++ trunk/dports/games/pennmush/files/patch-game_txt_Makefile	2009-05-18 00:37:07 UTC (rev 51099)
@@ -0,0 +1,10 @@
+--- game/txt/Makefile.orig	2007-05-16 22:26:45.000000000 -0600
++++ game/txt/Makefile	2009-05-17 15:07:35.000000000 -0600
+@@ -39,7 +39,6 @@
+ 
+ clean:
+ 	-rm -f $(IDX) $(TXT)
+-	-rm -f compose.sh
+ 	-rm -f hlp/*.orig hlp/*.rej hlp/\#* hlp/*~
+ 
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090517/48855b5d/attachment.html>


More information about the macports-changes mailing list