[137316] trunk/dports/games/bastet
ryandesign at macports.org
ryandesign at macports.org
Mon Jun 8 20:28:58 PDT 2015
Revision: 137316
https://trac.macports.org/changeset/137316
Author: ryandesign at macports.org
Date: 2015-06-08 20:28:58 -0700 (Mon, 08 Jun 2015)
Log Message:
-----------
bastet: update to 0.43.1 (#41914); take over as maintainer
Modified Paths:
--------------
trunk/dports/games/bastet/Portfile
Removed Paths:
-------------
trunk/dports/games/bastet/files/
Modified: trunk/dports/games/bastet/Portfile
===================================================================
--- trunk/dports/games/bastet/Portfile 2015-06-09 03:13:11 UTC (rev 137315)
+++ trunk/dports/games/bastet/Portfile 2015-06-09 03:28:58 UTC (rev 137316)
@@ -1,13 +1,16 @@
# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+PortGroup github 1.0
-name bastet
-version 0.41
+github.setup fph bastet 2c9d978e22ea78f47e3c522ac7c11d2223a1b8b4
+version 0.43.1
categories games
platforms darwin
-maintainers nomaintainer
+maintainers ryandesign openmaintainer
+license GPL-3+
+
description Bastard Tetris is an antagonistic Tetris clone
long_description \
Bastet stands for bastard tetris, and is a Tetris(R) \
@@ -17,31 +20,43 @@
experience.
homepage http://fph.altervista.org/prog/bastet.shtml
-master_sites http://fph.altervista.org/prog/files/
-checksums md5 48379dc98916ba083e9be5544f552a06
-extract.suffix .tgz
-patchfiles patch-Makefile.diff
-depends_lib-append port:ncurses
+checksums rmd160 447fae4e2134ee4552ab2f82fa2f95d2e4841112 \
+ sha256 064cc85c95c057b04b3d3f14d1c6bda56d6b0bec9e086df7f7d0188aadc69dea
-use_configure no
+depends_lib-append port:boost \
+ port:ncurses
-build.args PREFIX=${prefix}
-
post-patch {
- reinplace "s|termio\.h|termios.h|" ${worksrcpath}/bast.c
+ reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp
}
+use_configure no
+
+variant universal {}
+
+build.env BOOST_PO=-lboost_program_options-mt \
+ CXX=${configure.cxx} \
+ CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
+ LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
+set scoredir ${prefix}/var/games/bastet
+set scorefile ${scoredir}/bastet.scores2
+
+destroot.keepdirs ${scoredir}
+
destroot {
xinstall -m 755 ${worksrcpath}/bastet ${destroot}${prefix}/bin/
- xinstall -m 755 -d ${destroot}${prefix}/var/games/bastet \
- ${destroot}${prefix}/share/doc/${name}
- xinstall -m 666 ${filespath}/bastet.scores \
- ${destroot}${prefix}/var/games/bastet/
- xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README \
- README-Petris TODO ${destroot}${prefix}/share/doc/${name}
+
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -m 755 -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE NEWS README \
+ ${destroot}${docdir}
}
-livecheck.type regex
-livecheck.url ${homepage}
-livecheck.regex {version (\d+\.\d+)}
+post-activate {
+ if {![file exists ${scorefile}]} {
+ touch ${scorefile}
+ file attributes ${scorefile} -permissions 666
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150608/e78d4bb8/attachment.html>
More information about the macports-changes
mailing list