[87297] trunk/dports/kde/kmymoney4-devel
mk at macports.org
mk at macports.org
Wed Nov 16 10:50:42 PST 2011
Revision: 87297
http://trac.macports.org/changeset/87297
Author: mk at macports.org
Date: 2011-11-16 10:50:41 -0800 (Wed, 16 Nov 2011)
Log Message:
-----------
kmymoney4-devel: move from svn to git
Modified Paths:
--------------
trunk/dports/kde/kmymoney4-devel/Portfile
Added Paths:
-----------
trunk/dports/kde/kmymoney4-devel/files/patch-CMakeLists.txt.diff
Modified: trunk/dports/kde/kmymoney4-devel/Portfile
===================================================================
--- trunk/dports/kde/kmymoney4-devel/Portfile 2011-11-16 18:27:28 UTC (rev 87296)
+++ trunk/dports/kde/kmymoney4-devel/Portfile 2011-11-16 18:50:41 UTC (rev 87297)
@@ -6,14 +6,14 @@
# See dports/_resources/port1.0/group/kde4-1.1.tcl for more info.
PortGroup kde4 1.1
-fetch.type svn
-svn.url svn://anonsvn.kde.org/home/kde/trunk/extragear/office/kmymoney
-svn.revision 1260381
+fetch.type git
+git.url http://anongit.kde.org/kmymoney
+git.branch b614eae654d4b93649a21f2802221ac8fc77bdfa
name kmymoney4-devel
-version 4.6-${svn.revision}
+version 4.6-20111116
-categories kde finance
+categories kde kde4 finance
maintainers mk pixilla openmaintainer
description kmymoney version 4 following SVN HEAD as close as possible (THIS IS STILL AN EXPERIMENTAL PORT.)
@@ -30,6 +30,8 @@
conflicts kmymoney4
+depends_build-append port:git-core
+
depends_lib-append port:libofx \
port:aqbanking5 \
port:kde4-runtime \
@@ -86,7 +88,7 @@
patch.dir ${workpath}/${distname}
patch.pre_args -p1
-#patchfiles marko.patch \
+patchfiles patch-CMakeLists.txt.diff
# patch_to_include_datePopup_hideshow.diff
configure.args-append -DENABLE_KBANKING=ON
Added: trunk/dports/kde/kmymoney4-devel/files/patch-CMakeLists.txt.diff
===================================================================
--- trunk/dports/kde/kmymoney4-devel/files/patch-CMakeLists.txt.diff (rev 0)
+++ trunk/dports/kde/kmymoney4-devel/files/patch-CMakeLists.txt.diff 2011-11-16 18:50:41 UTC (rev 87297)
@@ -0,0 +1,25 @@
+--- kmymoney/CMakeLists.txt 2011-11-16 19:34:20.000000000 +0100
++++ kmymoney/CMakeLists.txt.new 2011-11-16 19:36:03.000000000 +0100
+@@ -40,21 +40,7 @@
+ SET(ENV{LANG} ${LANG})
+ ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn)
+
+-# Determine the GIT reference (if we're based on GIT)
+-IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
+- # make sure we don't use translated messages here
+- SET(LANG $ENV{LANG})
+- SET(ENV{LANG} "C")
+- EXECUTE_PROCESS(COMMAND git log -1 COMMAND head -n 1 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE BRANCH)
+- # extract branch name
+- STRING(REGEX MATCH "commit ([^$]+)" BRANCH "${BRANCH}")
+- SET(BRANCH ${CMAKE_MATCH_1})
+- # and use the first 10 chars of the commit id
+- STRING(SUBSTRING ${BRANCH} 0 10 BRANCH)
+- SET(VERSION_SUFFIX "-${BRANCH}")
+- # switch back to the original language setting
+- SET(ENV{LANG} ${LANG})
+-ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
++SET(VERSION_SUFFIX "-GIT")
+
+ ######################### General Requirements ##########################
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111116/a15ffc83/attachment.html>
More information about the macports-changes
mailing list