[97316] trunk/dports/office

ryandesign at macports.org ryandesign at macports.org
Mon Sep 3 05:29:16 PDT 2012


Revision: 97316
          https://trac.macports.org/changeset/97316
Author:   ryandesign at macports.org
Date:     2012-09-03 05:29:13 -0700 (Mon, 03 Sep 2012)
Log Message:
-----------
goldendict: new port, version 1.0.1-20120825

Added Paths:
-----------
    trunk/dports/office/goldendict/
    trunk/dports/office/goldendict/Portfile
    trunk/dports/office/goldendict/files/
    trunk/dports/office/goldendict/files/patch-goldendict.pro.diff

Added: trunk/dports/office/goldendict/Portfile
===================================================================
--- trunk/dports/office/goldendict/Portfile	                        (rev 0)
+++ trunk/dports/office/goldendict/Portfile	2012-09-03 12:29:13 UTC (rev 97316)
@@ -0,0 +1,67 @@
+# -*- 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           github 1.0
+PortGroup           qt4 1.0
+
+github.setup        goldendict goldendict e4adc5f
+version             1.0.1-20120825
+# FIXME: add proper categories
+categories          office
+platforms           darwin
+maintainers         nomaintainer
+license             GPL-3+
+
+description         Dictionary lookup program
+
+long_description    A feature-rich dictionary lookup program, \
+                    supporting multiple dictionary formats \
+                    (StarDict/Babylon/Lingvo/Dictd) and online \
+                    dictionaries, featuring perfect article \
+                    rendering with the complete markup, \
+                    illustrations and other content retained, \
+                    and allowing you to type in words without \
+                    any accents or correct case.
+
+homepage            http://goldendict.org/
+
+checksums           rmd160  e7bc51564dda4c93dfb34af2a4b13eb0bf879e58 \
+                    sha256  e65408498d4662e6d04c29b93ee0692718288c9995be87de54348783215d56f9
+
+depends_lib-append  port:bzip2 \
+                    port:hunspell \
+                    port:libogg \
+                    port:libvorbis \
+                    port:libiconv \
+                    port:phonon \
+                    port:zlib
+
+patchfiles          patch-goldendict.pro.diff
+
+post-patch {
+    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/goldendict.pro
+}
+
+configure.cmd       ${qt_qmake_cmd}
+configure.pre_args
+configure.universal_args-delete --disable-dependency-tracking
+
+post-configure {
+    # For some reason the Makefile qmake generates hardcodes the compiler
+    # that qt4-mac was made with as the one used to build lionsupport.o.
+    # Replace it with $(CC) which we set up for the correct compiler and
+    # -arch flags with the build.args below.
+    reinplace -E "/-o build\\/lionsupport.o/s/^(\[\[:space:\]\]+)\[^\[:space:\]\]+/\\1\\$\\(CC\\)/" ${worksrcpath}/Makefile
+}
+
+variant universal {}
+
+build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
+                    CXX="${configure.cxx} [get_canonical_archflags cxx]" \
+                    LINK="${configure.cxx} [get_canonical_archflags cxx]" \
+                    XXXOBJC="${configure.cc} [get_canonical_archflags cc]"
+
+destroot {
+    copy ${worksrcpath}/Goldendict.app ${destroot}${applications_dir}
+}


Property changes on: trunk/dports/office/goldendict/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/office/goldendict/files/patch-goldendict.pro.diff
===================================================================
--- trunk/dports/office/goldendict/files/patch-goldendict.pro.diff	                        (rev 0)
+++ trunk/dports/office/goldendict/files/patch-goldendict.pro.diff	2012-09-03 12:29:13 UTC (rev 97316)
@@ -0,0 +1,38 @@
+--- goldendict.pro.orig	2012-08-25 18:15:53.000000000 -0500
++++ goldendict.pro	2012-09-03 06:43:27.000000000 -0500
+@@ -10,7 +10,7 @@
+ # rebuilt; and doing it here is required too since any other way the RCC
+ # compiler would complain if version.txt wouldn't exist (fresh checkouts).
+ 
+-system(git describe --tags --always --dirty > version.txt): hasGit=1
++system(echo '@VERSION@' > version.txt): hasGit=1
+ 
+ isEmpty( hasGit ) {
+   message(Failed to precisely describe the version via Git -- using the default version string)
+@@ -101,14 +101,11 @@
+         -lvorbisfile \
+         -lvorbis \
+         -logg \
+-        -lhunspell-1.2
+-    INCLUDEPATH = maclibs/include
+-    LIBS += -Lmaclibs/lib -framework AppKit
++        -lhunspell-1.3
++    LIBS += -framework AppKit
+     OBJECTIVE_SOURCES += lionsupport.mm
+     ICON = icons/macicon.icns
+-    QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/Frameworks & \
+-                      cp -nR maclibs/lib/ GoldenDict.app/Contents/Frameworks/ & \
+-                      mkdir -p GoldenDict.app/Contents/MacOS/locale & \
++    QMAKE_POST_LINK = mkdir -p GoldenDict.app/Contents/MacOS/locale && \
+                       cp -R locale/*.qm GoldenDict.app/Contents/MacOS/locale/
+ }
+ DEFINES += PROGRAM_VERSION=\\\"$$VERSION\\\"
+@@ -335,7 +332,7 @@
+   QMAKE_EXTRA_TARGETS += revtarget
+   PRE_TARGETDEPS      += version.txt
+   revtarget.target     = version.txt
+-  revtarget.commands   = git describe --tags --always --dirty > $$revtarget.target
++  revtarget.commands   = echo '@VERSION@' > $$revtarget.target
+   revtarget.depends = $$SOURCES $$HEADERS $$FORMS
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120903/c45e2458/attachment.html>


More information about the macports-changes mailing list