aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-07-02 17:46:41 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-07-02 17:46:41 +0000
commit7ffdda293b481ba809052e51b74e86933f664d9a (patch)
treecfb32039c698f3eec1d38461efe141420d9d37f7 /misc
parentb45d7d71f31799bfc6c76267d8cd1cc6f2b74a95 (diff)
downloadports-7ffdda293b481ba809052e51b74e86933f664d9a.tar.gz
ports-7ffdda293b481ba809052e51b74e86933f664d9a.zip
- Update ${MASTER_SITES}
- Use ${ECHO_CMD} instead of ${ECHO} (${ECHO} is a no-op if make -s is used) - Install icon in ${PREFIX}/share/pixmaps rather than in ${PREFIX}/share/gnome/pixmaps - Polish the Makefile and reformat it
Notes
Notes: svn path=/head/; revision=138349
Diffstat (limited to 'misc')
-rw-r--r--misc/translator/Makefile46
-rw-r--r--misc/translator/pkg-plist2
2 files changed, 22 insertions, 26 deletions
diff --git a/misc/translator/Makefile b/misc/translator/Makefile
index 72759a08d274..f6f91956728c 100644
--- a/misc/translator/Makefile
+++ b/misc/translator/Makefile
@@ -5,44 +5,40 @@
# $FreeBSD$
#
-PORTNAME= translator
-PORTVERSION= 0.1.0
-PORTREVISION= 1
-CATEGORIES= misc
-MASTER_SITES= http://jodrell.net/files/translator/
+PORTNAME= translator
+PORTVERSION= 0.1.0
+PORTREVISION= 2
+CATEGORIES= misc
+MASTER_SITES= http://jodrell.net/files/attic/translator/
-MAINTAINER= jylefort@FreeBSD.org
-COMMENT= A GTK+ frontend to the Babelfish translation service
+MAINTAINER= jylefort@FreeBSD.org
+COMMENT= A GTK+ frontend to the Babelfish translation service
-RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
- ${SITE_PERL}/${PERL_ARCH}/Gtk2/GladeXML.pm:${PORTSDIR}/x11-toolkits/p5-Glade2 \
- ${SITE_PERL}/${PERL_ARCH}/Gnome2/GConf.pm:${PORTSDIR}/devel/p5-Gnome2-GConf \
- ${SITE_PERL}/WWW/Babelfish.pm:${PORTSDIR}/www/p5-WWW-Babelfish
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk2.pm:${PORTSDIR}/x11-toolkits/p5-Gtk2 \
+ ${SITE_PERL}/${PERL_ARCH}/Gtk2/GladeXML.pm:${PORTSDIR}/x11-toolkits/p5-Glade2 \
+ ${SITE_PERL}/${PERL_ARCH}/Gnome2/GConf.pm:${PORTSDIR}/devel/p5-Gnome2-GConf \
+ ${SITE_PERL}/WWW/Babelfish.pm:${PORTSDIR}/www/p5-WWW-Babelfish
-USE_X_PREFIX= yes
-USE_PERL5= yes
-NO_BUILD= yes
+USE_X_PREFIX= yes
+USE_PERL5= yes
+NO_BUILD= yes
.include <bsd.port.pre.mk>
-HAVE_THREADS!= ${PERL} -mthreads -e '' >/dev/null 2>&1 && ${ECHO} 'yes' || true
+HAVE_THREADS!= ${PERL} -mthreads -e '' >/dev/null 2>&1 && ${ECHO_CMD} 'yes' || true
.if ${PERL_LEVEL} < 500800 || empty(HAVE_THREADS)
-IGNORE= "Needs threaded perl 5.8.0 or higher, install lang/perl5.8 with threads support and try again"
+IGNORE= needs threaded perl 5.8.0 or higher, install lang/perl5.8 with threads support and try again
.endif
post-patch:
- @${SED} -e \
- 's|share/pixmaps|share/gnome/pixmaps| ; \
- s|@PREFIX@|${PREFIX}|' \
- ${WRKSRC}/translator.pl > ${WRKSRC}/translator
+ @${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/translator.pl > ${WRKSRC}/translator
do-install:
- ${MKDIR} ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/translator ${PREFIX}/bin
- ${MKDIR} ${PREFIX}/share/gnome/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/translator.png ${PREFIX}/share/gnome/pixmaps
- ${MKDIR} ${PREFIX}/share/translator
- ${INSTALL_DATA} ${WRKSRC}/translator.glade ${PREFIX}/share/translator
+ ${MKDIR} ${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/translator.png ${PREFIX}/share/pixmaps
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/translator.glade ${DATADIR}
.include <bsd.port.post.mk>
diff --git a/misc/translator/pkg-plist b/misc/translator/pkg-plist
index 4244db74f1a3..66f022ec9060 100644
--- a/misc/translator/pkg-plist
+++ b/misc/translator/pkg-plist
@@ -1,4 +1,4 @@
bin/translator
-share/gnome/pixmaps/translator.png
+share/pixmaps/translator.png
%%DATADIR%%/translator.glade
@dirrm %%DATADIR%%