summaryrefslogtreecommitdiffstats
path: root/editors/leafpad
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2004-11-19 19:11:32 +0000
committerahze <ahze@FreeBSD.org>2004-11-19 19:11:32 +0000
commit46f657d69c2b0d609eec609a9a460837c217841a (patch)
treeb4f71dc975ca6a13a810582f9eb9c06cce83b485 /editors/leafpad
parentf31cfc1e3a9ec4acf4ad7313500b63364a92ab59 (diff)
downloadFreeBSD-ports-46f657d69c2b0d609eec609a9a460837c217841a.zip
FreeBSD-ports-46f657d69c2b0d609eec609a9a460837c217841a.tar.gz
- Update to 0.7.7
- Utilize PORTDOCS - Register mime types with update-desktop-database PR: ports/74115 Submitted by: Radek Kozlowski (maintainer) Approved by: adamw (mentor)
Diffstat (limited to 'editors/leafpad')
-rw-r--r--editors/leafpad/Makefile28
-rw-r--r--editors/leafpad/distinfo4
-rw-r--r--editors/leafpad/pkg-plist27
3 files changed, 22 insertions, 37 deletions
diff --git a/editors/leafpad/Makefile b/editors/leafpad/Makefile
index 9a5d843..dc7006d 100644
--- a/editors/leafpad/Makefile
+++ b/editors/leafpad/Makefile
@@ -6,42 +6,32 @@
#
PORTNAME= leafpad
-PORTVERSION= 0.7.6
-PORTREVISION= 1
+PORTVERSION= 0.7.7
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= radek@raadradd.com
-COMMENT= Light-weight GTK+ Editor similar to notepad.exe
+COMMENT= Light-weight GTK+ editor similar to notepad.exe
USE_GNOME= gtk20 gnomehier
+USE_REINPLACE= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-USE_REINPLACE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
-DOCS= AUTHORS COPYING ChangeLog INSTALL README
-
-.if !defined(WITHOUT_NLS)
-USE_GETTEXT= yes
-CONFIGURE_ARGS= --enable-nls \
- --with-libiconv-prefix=${LOCALBASE} \
- --with-libintl-prefix=${LOCALBASE}
-PLIST_SUB+= NLS:=""
-.else
-CONFIGURE_ARGS= --disable-nls
-PLIST_SUB+= NLS:="@comment "
-.endif
+PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README
post-patch:
@${REINPLACE_CMD} -e 's|/pixmaps|/gnome/pixmaps|; \
s|/applications|/gnome/applications|' \
- ${WRKSRC}/Makefile.in ${WRKSRC}/src/Makefile.in
+ ${WRKSRC}/Makefile.in ${WRKSRC}/src/Makefile.in
-.ifndef (NOPORTDOCS)
+.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
-.for i in ${DOCS}
+.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
diff --git a/editors/leafpad/distinfo b/editors/leafpad/distinfo
index fe561f5..60f11f4 100644
--- a/editors/leafpad/distinfo
+++ b/editors/leafpad/distinfo
@@ -1,2 +1,2 @@
-MD5 (leafpad-0.7.6.tar.gz) = b45985eb0a811f67224a9c1f77f9ade9
-SIZE (leafpad-0.7.6.tar.gz) = 177604
+MD5 (leafpad-0.7.7.tar.gz) = 7875e25a31ed180a49ba8f9efb896322
+SIZE (leafpad-0.7.7.tar.gz) = 179836
diff --git a/editors/leafpad/pkg-plist b/editors/leafpad/pkg-plist
index 903845c..0139fe3 100644
--- a/editors/leafpad/pkg-plist
+++ b/editors/leafpad/pkg-plist
@@ -1,19 +1,14 @@
bin/leafpad
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/README
share/gnome/applications/leafpad.desktop
share/gnome/pixmaps/leafpad.png
-%%NLS:%%share/locale/de/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/es/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/fr/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/ja/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/ru/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/sv/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/zh_CN/LC_MESSAGES/leafpad.mo
-%%NLS:%%share/locale/zh_TW/LC_MESSAGES/leafpad.mo
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec update-mime-database %D/share/mime
-@unexec update-mime-database %D/share/mime
+share/locale/cs/LC_MESSAGES/leafpad.mo
+share/locale/de/LC_MESSAGES/leafpad.mo
+share/locale/es/LC_MESSAGES/leafpad.mo
+share/locale/fr/LC_MESSAGES/leafpad.mo
+share/locale/ja/LC_MESSAGES/leafpad.mo
+share/locale/ru/LC_MESSAGES/leafpad.mo
+share/locale/sv/LC_MESSAGES/leafpad.mo
+share/locale/zh_CN/LC_MESSAGES/leafpad.mo
+share/locale/zh_TW/LC_MESSAGES/leafpad.mo
+@exec update-desktop-database > /dev/null || true
+@unexec update-desktop-database > /dev/null || true
OpenPOWER on IntegriCloud