Ticket #38466: quassel-correct-version-string.patch

File quassel-correct-version-string.patch, 1.8 KB (added by macports@…, 8 years ago)
  • Portfile

    diff -r -u -N /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/irc/quassel/Portfile ./Portfile
    old new  
    66
    77name            quassel
    88version         0.8.0
     9revision        1
    910categories      irc
    1011license         GPL-3
    1112platforms       darwin
     
    2021
    2122use_bzip2       yes
    2223
     24# Do not use git to find out the program version - there is no ".git" directory
     25# in the source tarball
     26patchfiles      patch-use-hardcoded-version.diff
     27
     28post-patch {
     29    reinplace "s|@@VERSION@@|${version}|" \
     30        ${worksrcpath}/scripts/build/macosx_makebundle.py
     31}
     32
    2333configure.args  -DWANT_CORE=OFF \
    2434                -DWANT_QTCLIENT=OFF \
    2535                -DWANT_MONO=OFF \
  • files/patch-use-hardcoded-version.diff

    diff -r -u -N /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/irc/quassel/files/patch-use-hardcoded-version.diff ./files/patch-use-hardcoded-version.diff
    old new  
     1--- scripts/build/macosx_makebundle.py.orig     2013-03-25 14:55:00.000000000 +0100
     2+++ scripts/build/macosx_makebundle.py  2013-03-25 15:01:00.000000000 +0100
     3@@ -38,7 +38,7 @@
     4     CONTENTS_DIR = os.path.dirname(EXE_NAME) + "/"
     5 CONTENTS_DIR += BUNDLE_NAME + ".app/Contents/"
     6 
     7-BUNDLE_VERSION = commands.getoutput("git --git-dir="+SOURCE_DIR+"/.git/ describe")
     8+BUNDLE_VERSION = "@@VERSION@@"
     9 ICON_FILE = "pics/quassel.icns"
     10 
     11 def createBundle():