aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2010-08-24 02:32:40 +0800
committermakc <makc@FreeBSD.org>2010-08-24 02:32:40 +0800
commit78173cf3daefe77c59f81efcb21b9bfcc16772c1 (patch)
treef1b37ffdce386cb3467e84534d02e04b84b80b3a /textproc
parentbef48dd3147f02d53add6b558bb448b236a79375 (diff)
downloadfreebsd-ports-gnome-78173cf3daefe77c59f81efcb21b9bfcc16772c1.tar.gz
freebsd-ports-gnome-78173cf3daefe77c59f81efcb21b9bfcc16772c1.tar.zst
freebsd-ports-gnome-78173cf3daefe77c59f81efcb21b9bfcc16772c1.zip
Disable advertisement and updateinfo plugins.
Respect PREFIX. Create empty directories when installing from package. PR: ports/149468 Approved by: maintainer timeout (two weeks)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/stardict3/Makefile10
-rw-r--r--textproc/stardict3/pkg-plist15
2 files changed, 10 insertions, 15 deletions
diff --git a/textproc/stardict3/Makefile b/textproc/stardict3/Makefile
index 84f7923c9014..6beabb84955a 100644
--- a/textproc/stardict3/Makefile
+++ b/textproc/stardict3/Makefile
@@ -7,7 +7,7 @@
PORTNAME= stardict
PORTVERSION= 3.0.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= textproc
MASTER_SITES= SF
DIST_SUBDIR= stardict
@@ -23,7 +23,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-festival \
--disable-gucharmap \
- --disable-espeak
+ --disable-espeak \
+ --disable-advertisement \
+ --disable-updateinfo
USE_GMAKE= yes
USE_BZIP2= yes
USE_GNOME= gnomehack gnomeprefix
@@ -52,6 +54,10 @@ MAN1= stardict.1
EXTRA_PATCHES+= ${FILESDIR}/src_conf.h
.endif
+post-patch:
+ ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
+ ${WRKSRC}/src/conf.cpp
+
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/textproc/stardict3/pkg-plist b/textproc/stardict3/pkg-plist
index 8c085aae6b94..19862055a8b8 100644
--- a/textproc/stardict3/pkg-plist
+++ b/textproc/stardict3/pkg-plist
@@ -55,13 +55,6 @@ share/stardict/pixmaps/index_translate.png
share/stardict/pixmaps/splash.png
share/stardict/sounds/menushow.wav
share/stardict/sounds/buttonactive.wav
-share/stardict/data/advertisement/advertisement.txt
-share/stardict/data/advertisement/huzheng.png
-share/stardict/data/advertisement/linux_logo.jpg
-share/stardict/data/advertisement/redhat_linux_logo.gif
-share/stardict/data/advertisement/redhat_logo.jpg
-share/stardict/data/advertisement/wenjing.jpg
-share/stardict/data/advertisement/wenjing2.jpg
share/locale/ar/LC_MESSAGES/stardict.mo
share/locale/cs/LC_MESSAGES/stardict.mo
share/locale/de/LC_MESSAGES/stardict.mo
@@ -86,12 +79,8 @@ share/locale/zh_CN/LC_MESSAGES/stardict.mo
share/locale/zh_TW/LC_MESSAGES/stardict.mo
lib/stardict/plugins/stardict_dictdotcn.so
lib/stardict/plugins/stardict_dictdotcn.la
-lib/stardict/plugins/advertisement.so
-lib/stardict/plugins/advertisement.la
lib/stardict/plugins/stardict_man.so
lib/stardict/plugins/stardict_man.la
-lib/stardict/plugins/stardict_update_info.so
-lib/stardict/plugins/stardict_update_info.la
lib/stardict/plugins/stardict_html_parsedata.so
lib/stardict/plugins/stardict_html_parsedata.la
lib/stardict/plugins/stardict_xdxf_parsedata.so
@@ -157,8 +146,6 @@ lib/stardict/plugins/stardict_qqwry.la
@dirrm share/stardict/sounds
@dirrm share/stardict/pixmaps
@dirrm share/stardict/treedict
-@dirrm share/stardict/data/advertisement
-@dirrmtry share/stardict/data
@dirrmtry share/stardict/dic
@dirrmtry share/stardict
%%GNOME%%@dirrm share/omf/stardict
@@ -178,3 +165,5 @@ lib/stardict/plugins/stardict_qqwry.la
%%GNOME%%@dirrm share/gnome/help/stardict/nl
%%GNOME%%@dirrm share/gnome/help/stardict
@dirrmtry share/applications
+@exec mkdir -p %D/share/stardict/treedict
+@exec mkdir -p %D/share/stardict/dic