summaryrefslogtreecommitdiff
path: root/deskutils/notecase
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2013-11-08 10:37:42 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2013-11-08 10:37:42 +0000
commit3969a63afa724e9c34a757af9b83cb599b0081f8 (patch)
tree20ff8c69679c4e987d97a7d02b3ccd013c8a3549 /deskutils/notecase
parentFix 'make stage' for ports which define USE_LINUX by passing a defined (diff)
- Enable staging
- Update USES - Rework doc installation - Strip installed binary
Notes
Notes: svn path=/head/; revision=333193
Diffstat (limited to 'deskutils/notecase')
-rw-r--r--deskutils/notecase/Makefile13
-rw-r--r--deskutils/notecase/files/patch-Makefile6
-rw-r--r--deskutils/notecase/pkg-plist4
3 files changed, 10 insertions, 13 deletions
diff --git a/deskutils/notecase/Makefile b/deskutils/notecase/Makefile
index cfc735fffe17..d95fae756436 100644
--- a/deskutils/notecase/Makefile
+++ b/deskutils/notecase/Makefile
@@ -3,7 +3,7 @@
PORTNAME= notecase
PORTVERSION= 1.9.8
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= deskutils textproc
MASTER_SITES= SF
DISTNAME= ${PORTNAME}-${PORTVERSION}_src
@@ -13,22 +13,16 @@ COMMENT= Hierarchical text notes manager
LICENSE= BSD
-USE_GMAKE= yes
USE_GNOME= gtk20 gtksourceview2 gnomevfs2
-USES= desktop-file-utils gettext pkgconfig shared-mime-info
+USES= gmake desktop-file-utils gettext pkgconfig shared-mime-info
USE_DOS2UNIX= yes
DOS2UNIX_REGEX= .*\.(c|h|cpp)
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= help.ncd
INSTALL_TARGET= install docinstall
-.endif
post-patch:
@${REINPLACE_CMD} -e 's|^prefix=.*|prefix=${PREFIX}|' \
@@ -36,4 +30,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|^docsdir=.*|docsdir=${DOCSDIR}|' \
${WRKSRC}/Makefile
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notecase
+
.include <bsd.port.mk>
diff --git a/deskutils/notecase/files/patch-Makefile b/deskutils/notecase/files/patch-Makefile
index de6491374d24..c4a85f4ef2c3 100644
--- a/deskutils/notecase/files/patch-Makefile
+++ b/deskutils/notecase/files/patch-Makefile
@@ -1,5 +1,5 @@
--- Makefile.orig 2008-12-09 11:07:06.000000000 +0100
-+++ Makefile 2011-06-23 19:11:55.067358819 +0200
++++ Makefile 2013-11-05 17:07:34.000000000 +0100
@@ -10,9 +10,10 @@
VERSION=1.9.8
@@ -27,8 +27,8 @@
-
+
+docinstall:
-+ install -d -m 755 "$(docsdir)"
-+ $(INSTALL) -m 644 -c docs/help.ncd "$(docsdir)/help.ncd"
++ install -d -m 755 "$(DESTDIR)$(docsdir)"
++ $(INSTALL) -m 644 -c docs/help.ncd "$(DESTDIR)$(docsdir)/help.ncd"
+
#
# install application
diff --git a/deskutils/notecase/pkg-plist b/deskutils/notecase/pkg-plist
index 20073ac56eca..0c133afd1ebf 100644
--- a/deskutils/notecase/pkg-plist
+++ b/deskutils/notecase/pkg-plist
@@ -34,9 +34,9 @@ share/locale/ta/LC_MESSAGES/notecase.mo
share/locale/tr/LC_MESSAGES/notecase.mo
share/locale/zh_CN/LC_MESSAGES/notecase.mo
share/locale/zh_TW/LC_MESSAGES/notecase.mo
-share/mime/application/notecase-enc.xml
-share/mime/application/notecase-plain.xml
share/mime/packages/notecase.xml
+@dirrmtry share/mime/packages
+@dirrmtry share/mime
share/pixmaps/notecase.xpm
@dirrmtry share/locale/fr_CA/LC_MESSAGES
@dirrmtry share/locale/fr_CA