[73634] trunk/dports/devel
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 20 01:31:01 PST 2010
Revision: 73634
http://trac.macports.org/changeset/73634
Author: ryandesign at macports.org
Date: 2010-11-20 01:30:56 -0800 (Sat, 20 Nov 2010)
Log Message:
-----------
PlasmaShop: new port, version 3.0 beta
Added Paths:
-----------
trunk/dports/devel/PlasmaShop/
trunk/dports/devel/PlasmaShop/Portfile
trunk/dports/devel/PlasmaShop/files/
trunk/dports/devel/PlasmaShop/files/patch-flags.diff
trunk/dports/devel/PlasmaShop/files/patch-prefix.diff
Added: trunk/dports/devel/PlasmaShop/Portfile
===================================================================
--- trunk/dports/devel/PlasmaShop/Portfile (rev 0)
+++ trunk/dports/devel/PlasmaShop/Portfile 2010-11-20 09:30:56 UTC (rev 73634)
@@ -0,0 +1,66 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup qt4 1.0
+
+name PlasmaShop
+version 3.0-127
+categories devel
+platforms darwin
+maintainers ryandesign
+license GPL-3+
+homepage http://alcugs.almlys.org/PlasmaShop
+
+fetch.type hg
+hg.url http://uru.zrax.net/hg/PlasmaShop/
+hg.tag 4c278eea53d1
+
+depends_lib-append port:libhsplasma
+
+set files_being_patched {
+ QScintilla/Qt4/qscintilla.pro
+ config
+ src/3rdParty/qticonloader.cpp
+ src/PlasmaShop/PlasmaShop.pro
+ src/PrpShop/PrpShop.pro
+ src/VaultShop/VaultShop.pro
+ }
+
+post-extract {
+ # DOS to UNIX line endings so we can patch properly.
+ foreach file ${files_being_patched} {
+ reinplace "s|\r||g" ${worksrcpath}/${file}
+ }
+}
+
+patchfiles patch-prefix.diff patch-flags.diff
+
+post-patch {
+ foreach file ${files_being_patched} {
+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/${file}
+ reinplace "s|@APPLICATIONS_DIR@|${applications_dir}|g" ${worksrcpath}/${file}
+ }
+ reinplace "s|@CFLAGS@|${configure.cflags} ${configure.cc_archflags}|g" ${worksrcpath}/config
+ reinplace "s|@CXXFLAGS@|${configure.cxxflags} ${configure.cxx_archflags}|g" ${worksrcpath}/config
+ reinplace "s|@LDFLAGS@|${configure.ldflags} ${configure.ld_archflags}|g" ${worksrcpath}/config
+}
+
+configure.cmd ${qt_qmake_cmd}
+configure.pre_args
+
+# http://forum.guildofwriters.com/viewtopic.php?f=86&t=4145#p40027
+use_parallel_build no
+
+universal_variant no
+
+platform darwin {
+ # http://www.ogre3d.org/forums/viewtopic.php?t=9949#p71474
+ configure.cflags-append -DGL_GLEXT_LEGACY
+ configure.cxxflags-append -DGL_GLEXT_LEGACY
+}
+
+livecheck.type regex
+livecheck.url ${hg.url}
+livecheck.version [lindex [split ${version} -] 1]
+livecheck.regex {rev (\d+)}
Property changes on: trunk/dports/devel/PlasmaShop/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/PlasmaShop/files/patch-flags.diff
===================================================================
--- trunk/dports/devel/PlasmaShop/files/patch-flags.diff (rev 0)
+++ trunk/dports/devel/PlasmaShop/files/patch-flags.diff 2010-11-20 09:30:56 UTC (rev 73634)
@@ -0,0 +1,10 @@
+--- config.orig Tue Nov 16 15:07:59 2010 -0800
++++ config Sat Nov 20 02:38:59 2010 -0600
+@@ -21,3 +21,7 @@
+ INCLUDEPATH *= $${PLASMA_PATH}/include/HSPlasmaNet
+ LIBS *= -L$${PLASMA_PATH}/lib -lHSPlasmaNet
+ }
++
++QMAKE_CFLAGS += @CFLAGS@
++QMAKE_CXXFLAGS += @CXXFLAGS@
++QMAKE_LDFLAGS += @LDFLAGS@
Added: trunk/dports/devel/PlasmaShop/files/patch-prefix.diff
===================================================================
--- trunk/dports/devel/PlasmaShop/files/patch-prefix.diff (rev 0)
+++ trunk/dports/devel/PlasmaShop/files/patch-prefix.diff 2010-11-20 09:30:56 UTC (rev 73634)
@@ -0,0 +1,76 @@
+--- QScintilla/Qt4/qscintilla.pro.orig Tue Nov 16 15:07:59 2010 -0800
++++ QScintilla/Qt4/qscintilla.pro Sat Nov 20 01:31:07 2010 -0600
+@@ -40,7 +40,7 @@
+ DEFINES = QSCINTILLA_MAKE_DLL QT SCI_LEXER
+
+ !win32 {
+- target.path = /usr/local/lib
++ target.path = @PREFIX@/lib
+ INSTALLS += target
+ }
+
+--- config.orig Tue Nov 16 15:07:59 2010 -0800
++++ config Sat Nov 20 01:26:15 2010 -0600
+@@ -1,5 +1,5 @@
+ # Configure where libHSPlasma is installed
+-PLASMA_PATH=<<EDIT ME>>
++PLASMA_PATH=@PREFIX@
+ PLAT_BITS=
+
+ # QScintilla Defaults
+--- src/3rdParty/qticonloader.cpp.orig Tue Nov 16 15:07:59 2010 -0800
++++ src/3rdParty/qticonloader.cpp Sat Nov 20 01:35:36 2010 -0600
+@@ -170,7 +170,7 @@
+ #ifdef Q_WS_X11
+ QString dataDirs = QFile::decodeName(getenv("XDG_DATA_DIRS"));
+ if (dataDirs.isEmpty())
+- dataDirs = QLatin1String("/usr/local/share/:/usr/share/");
++ dataDirs = QLatin1String("@PREFIX@/share/:/usr/share/");
+
+ dataDirs.prepend(QDir::homePath() + QLatin1String("/:"));
+ iconDirs = dataDirs.split(QLatin1Char(':'));
+@@ -219,7 +219,7 @@
+
+ // KDE (and others)
+ if (dataDirs.isEmpty())
+- dataDirs = QLatin1String("/usr/local/share/:/usr/share/");
++ dataDirs = QLatin1String("@PREFIX@/share/:/usr/share/");
+
+ dataDirs += QLatin1Char(':') + kdeHome() + QLatin1String("/share");
+ dataDirs.prepend(QDir::homePath() + QLatin1String("/:"));
+--- src/PlasmaShop/PlasmaShop.pro.orig Tue Nov 16 15:07:59 2010 -0800
++++ src/PlasmaShop/PlasmaShop.pro Sat Nov 20 01:31:07 2010 -0600
+@@ -25,9 +25,9 @@
+ }
+
+ !win32 {
+- target.path = /usr/local/bin
++ target.path = @APPLICATIONS_DIR@
+ INSTALLS += target
+- DEFINES += DATA_PATH="\"\\\"/usr/local/share/PlasmaShop\\\"\""
++ DEFINES += DATA_PATH="\"\\\"@PREFIX@/share/PlasmaShop\\\"\""
+ }
+
+ # PlasmaShop Sources
+--- src/PrpShop/PrpShop.pro.orig Tue Nov 16 15:07:59 2010 -0800
++++ src/PrpShop/PrpShop.pro Sat Nov 20 01:31:07 2010 -0600
+@@ -23,7 +23,7 @@
+ }
+
+ !win32 {
+- target.path = /usr/local/bin
++ target.path = @APPLICATIONS_DIR@
+ INSTALLS += target
+ }
+
+--- src/VaultShop/VaultShop.pro.orig Tue Nov 16 15:07:59 2010 -0800
++++ src/VaultShop/VaultShop.pro Sat Nov 20 01:31:07 2010 -0600
+@@ -17,7 +17,7 @@
+ }
+
+ !win32 {
+- target.path = /usr/local/bin
++ target.path = @APPLICATIONS_DIR@
+ INSTALLS += target
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101120/339c6cce/attachment.html>
More information about the macports-changes
mailing list