if [[ $FATRAT_BRANCH == scm ]]; then
-
- if [[ $FATRAT_AUTOUPDATE == y ]]; then
- VERSION=$(date +%Y%m%d)
- else
- VERSION=git
- fi
-
+ VERSION=$(get_scm_version)
SOURCE=$SPELL-git.tar.bz2
SOURCE_URL[0]=git://git.dolezel.info/fatrat.git
SOURCE_IGNORE=volatile
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-git
FORCE_DOWNLOAD=1
-
else
-
VERSION=1.1
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_URL[0]=http://www.dolezel.info/download/data/fatrat/$SOURCE
SOURCE_HASH=sha512:b8231c5e2490b451217ff19e0d29b8fa28e4fd912785c64ff0957d5fd40476af5d0769ad0b1df48fab3c48fab209b2a1dc72935b3514b4a250a7c16b62c42c53
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
-
fi
WEB_SITE=http://fatrat.dolezel.info/
diff --git a/ftp/fatrat/HISTORY b/ftp/fatrat/HISTORY
index 241c0a4..c953d60 100644
--- a/ftp/fatrat/HISTORY
+++ b/ftp/fatrat/HISTORY
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Use get_scm_version
+
2011-09-22 Ismael Luceno <ismael AT sourcemage.org>
* DEPENDS, DETAILS, PREPARE: Use prepare_select_branch
diff --git a/ftp/rsync/DETAILS b/ftp/rsync/DETAILS
index 6e651b7..dc90f8d 100755
--- a/ftp/rsync/DETAILS
+++ b/ftp/rsync/DETAILS
@@ -1,10 +1,7 @@
+. "$GRIMOIRE/FUNCTIONS"
SPELL=rsync
if [[ $RSYNC_BRANCH == scm ]]; then
- if [[ $RSYNC_AUTOUPDATE == y ]]; then
- VERSION=$(date +%Y%m%d)
- else
- VERSION=git
- fi
+ VERSION=$(get_scm_version)
SOURCE=$SPELL-git.tar.bz2
SOURCE_URL[0]=git://git.samba.org/$SPELL.git:$SPELL-git
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
diff --git a/ftp/rsync/HISTORY b/ftp/rsync/HISTORY
index 3016adf..032b5f2 100644
--- a/ftp/rsync/HISTORY
+++ b/ftp/rsync/HISTORY
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Use get_scm_version
+
2014-04-24 Treeve Jelbert <treev AT pi.be>
* DETAILS: version 3.1.0
diff --git a/gnome2-libs/librep2/DETAILS b/gnome2-libs/librep2/DETAILS
index edc6d2f..4f40946 100755
--- a/gnome2-libs/librep2/DETAILS
+++ b/gnome2-libs/librep2/DETAILS
@@ -1,10 +1,7 @@
+. "$GRIMOIRE/FUNCTIONS"
SPELL=librep2
if [ "${LIBREP2_CVS}" == "y" ]; then
- if [ "${LIBREP2_AUTOUPDATE}" == "y" ]; then
- VERSION=$(date +%Y%m%d)
- else
- VERSION=cvs
- fi
+ VERSION=$(get_scm_version)
SOURCE=${SPELL}-cvs.tar.bz2
SOURCE_DIRECTORY=${BUILD_DIRECTORY}/${SPELL}-cvs
SOURCE_URL[0]=svn_http://svn.gnome.org/svn/librep/trunk:librep-svn
diff --git a/gnome2-libs/librep2/HISTORY b/gnome2-libs/librep2/HISTORY
index f03ecc8..924b318 100644
--- a/gnome2-libs/librep2/HISTORY
+++ b/gnome2-libs/librep2/HISTORY
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Use get_scm_version
+
2011-09-25 Robin Cook <rcook AT wyrms.net>
* DETAILS: updated to 0.92.1b
changed SOURCE_URL[1]
diff --git a/graphics-libs/harfbuzz/DETAILS b/graphics-libs/harfbuzz/DETAILS
index 50e575c..2073962 100755
--- a/graphics-libs/harfbuzz/DETAILS
+++ b/graphics-libs/harfbuzz/DETAILS
@@ -1,10 +1,7 @@
+. "$GRIMOIRE/FUNCTIONS"
SPELL=harfbuzz
if [[ "$HARFBUZZ_BRANCH" == "scm" ]]; then
- if [ "$HARFBUZZ_AUTOUPDATE" == "y" ]; then
- VERSION=$(date +%Y%m%d)
- else
- VERSION=git
- fi
+ VERSION=$(get_scm_version)
SOURCE=$SPELL-git.tar.bz2
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
SOURCE_URL[0]=git://anongit.freedesktop.org/harfbuzz:harfbuzz-git
diff --git a/graphics-libs/harfbuzz/HISTORY b/graphics-libs/harfbuzz/HISTORY
index 0e51b14..e6f898d 100644
--- a/graphics-libs/harfbuzz/HISTORY
+++ b/graphics-libs/harfbuzz/HISTORY
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Use get_scm_version
+
2014-06-10 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 0.9.29
diff --git a/graphics-libs/libgxps/DETAILS b/graphics-libs/libgxps/DETAILS
index 61a2bfd..d680600 100755
--- a/graphics-libs/libgxps/DETAILS
+++ b/graphics-libs/libgxps/DETAILS
@@ -1,10 +1,7 @@
+. "$GRIMOIRE/FUNCTIONS"
SPELL=libgxps
if [[ $LIBGXPS_BRANCH == scm ]]; then
- if [[ $LIBGXPS_AUTOUPDATE == y ]]; then
- VERSION=$(date +%Y%m%d)
- else
- VERSION=scm
- fi
+ VERSION=$(get_scm_version)
SOURCE=$SPELL-$VERSION.tar.bz2
SOURCE_URL[0]=git://git.gnome.org/libgxps
FORCE_DOWNLOAD=1
diff --git a/graphics-libs/libgxps/HISTORY b/graphics-libs/libgxps/HISTORY
index 880a0d2..0d17496 100644
--- a/graphics-libs/libgxps/HISTORY
+++ b/graphics-libs/libgxps/HISTORY
@@ -1,3 +1,6 @@
+2014-07-03 Ismael Luceno <ismael AT sourcemage.org>
+ * DETAILS: Use get_scm_version
+
2013-02-11 Vlad Glagolev <stealth AT sourcemage.org>
* DEPENDS: added missing ``&&''