ports/149468: textproc/stardict3: disable advertisement plugins, minor clean-up

Max Brazhnikov makc at FreeBSD.org
Mon Aug 9 13:40:06 UTC 2010


>Number:         149468
>Category:       ports
>Synopsis:       textproc/stardict3: disable advertisement plugins, minor clean-up
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 09 13:40:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Max Brazhnikov
>Release:        FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
FreeBSD luna.dio.ru 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #7: Wed Jul 14 01:05:50 MSD 2010     root at luna.dio.ru:/usr/obj/usr/freebsd/8/src/sys/LUNA  amd64
>Description:
Disable advertisement and updateinfo plugins (removes advertisement at the bottom of stardict window).
Respect PREFIX.
Create empty directories when installing from package.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/textproc/stardict3/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile	31 May 2010 02:01:19 -0000	1.41
+++ Makefile	9 Aug 2010 11:19:17 -0000
@@ -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 @@
 		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 @@
 EXTRA_PATCHES+=	${FILESDIR}/src_conf.h
 .endif
 
+post-patch:
+	${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
+		${WRKSRC}/src/conf.cpp
+
 post-install:
 	@${CAT} ${PKGMESSAGE}
 
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/textproc/stardict3/pkg-plist,v
retrieving revision 1.16
diff -u -r1.16 pkg-plist
--- pkg-plist	23 Sep 2008 04:07:39 -0000	1.16
+++ pkg-plist	9 Aug 2010 11:17:21 -0000
@@ -55,13 +55,6 @@
 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_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 @@
 @dirrm share/stardict/sounds
 @dirrm share/stardict/pixmaps
 @dirrm share/stardict/treedict
- at dirrm share/stardict/data/advertisement
- at dirrmtry share/stardict/data
 @dirrmtry share/stardict/dic
 @dirrmtry share/stardict
 %%GNOME%%@dirrm share/omf/stardict
@@ -178,3 +165,5 @@
 %%GNOME%%@dirrm share/gnome/help/stardict/nl
 %%GNOME%%@dirrm share/gnome/help/stardict
 @dirrmtry share/applications
+ at exec mkdir -p %D/share/stardict/treedict
+ at exec mkdir -p %D/share/stardict/dic


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list