[125943] trunk/dports/editors/tea
ryandesign at macports.org
ryandesign at macports.org
Mon Sep 29 20:21:05 PDT 2014
Revision: 125943
https://trac.macports.org/changeset/125943
Author: ryandesign at macports.org
Date: 2014-09-29 20:21:05 -0700 (Mon, 29 Sep 2014)
Log Message:
-----------
tea: use patchfile instead of just reinplace
Modified Paths:
--------------
trunk/dports/editors/tea/Portfile
Added Paths:
-----------
trunk/dports/editors/tea/files/
trunk/dports/editors/tea/files/patch-src.pro.diff
Modified: trunk/dports/editors/tea/Portfile
===================================================================
--- trunk/dports/editors/tea/Portfile 2014-09-30 03:11:09 UTC (rev 125942)
+++ trunk/dports/editors/tea/Portfile 2014-09-30 03:21:05 UTC (rev 125943)
@@ -24,9 +24,10 @@
use_bzip2 yes
+patchfiles-append patch-src.pro.diff
+
post-patch {
- reinplace "s|/usr|${prefix}|" ${worksrcpath}/src.pro
- reinplace "s|-laspell|-laspell -lz|" ${worksrcpath}/src.pro
+ reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/src.pro
}
destroot {
Added: trunk/dports/editors/tea/files/patch-src.pro.diff
===================================================================
--- trunk/dports/editors/tea/files/patch-src.pro.diff (rev 0)
+++ trunk/dports/editors/tea/files/patch-src.pro.diff 2014-09-30 03:21:05 UTC (rev 125943)
@@ -0,0 +1,23 @@
+--- src.pro.orig 2009-08-09 09:13:01.000000000 -0500
++++ src.pro 2014-09-29 22:18:34.000000000 -0500
+@@ -48,7 +48,7 @@
+ script \
+ svg
+ TARGET = bin/tea
+-target.path = /usr/local/bin
++target.path = @PREFIX@/local/bin
+ INSTALLS += target
+ RESOURCES += rlvn.qrc
+ TRANSLATIONS = translations/tea_ru.ts
+@@ -68,9 +68,9 @@
+ manuals/ru.html \
+ text-data/* \
+ translations/*
+-exists("/usr/include/aspell.h") {
++exists("@PREFIX@/include/aspell.h") {
+ message ("ASpell enabled")
+- LIBS += -laspell
++ LIBS += -laspell -lz
+ DEFINES += ASPELL_ENABLE
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140929/9750838f/attachment.html>
More information about the macports-changes
mailing list