aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2013-11-11 23:42:02 +0800
committerehaupt <ehaupt@FreeBSD.org>2013-11-11 23:42:02 +0800
commitd5d6dea989f640b80aaced72cce0b47c8bb29e80 (patch)
tree14db305f375c1cb34c71a6e87a2f4de8881a9a67 /ftp
parent5dc43830617fce6ba5233ee4b7e9e762b5425596 (diff)
downloadfreebsd-ports-gnome-d5d6dea989f640b80aaced72cce0b47c8bb29e80.tar.gz
freebsd-ports-gnome-d5d6dea989f640b80aaced72cce0b47c8bb29e80.tar.zst
freebsd-ports-gnome-d5d6dea989f640b80aaced72cce0b47c8bb29e80.zip
Support stage.
Diffstat (limited to 'ftp')
-rw-r--r--ftp/weex/Makefile13
-rw-r--r--ftp/weex/files/patch-po__Makefile.in.in11
-rw-r--r--ftp/weex/pkg-plist1
3 files changed, 18 insertions, 7 deletions
diff --git a/ftp/weex/Makefile b/ftp/weex/Makefile
index 3494846bc00c..a3304a67e5b7 100644
--- a/ftp/weex/Makefile
+++ b/ftp/weex/Makefile
@@ -11,14 +11,13 @@ MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Non-interactive FTP client
GNU_CONFIGURE= yes
-MANCOMPRESSED= no
PORTDOCS= ChangeLog README
-MAN1= weex.1
+
+MAKE_ENV+= STAGEDIR=${STAGEDIR}
OPTIONS_DEFINE= DOCS NLS
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
@@ -34,13 +33,13 @@ post-patch:
${WRKSRC}/Makefile.in
post-install:
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/sample.weexrc ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/sample.weexrc ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/ftp/weex/files/patch-po__Makefile.in.in b/ftp/weex/files/patch-po__Makefile.in.in
new file mode 100644
index 000000000000..dccb1a736ec9
--- /dev/null
+++ b/ftp/weex/files/patch-po__Makefile.in.in
@@ -0,0 +1,11 @@
+--- ./po/Makefile.in.in.orig 2013-11-11 16:27:04.341725450 +0100
++++ ./po/Makefile.in.in 2013-11-11 16:29:31.102728126 +0100
+@@ -20,7 +20,7 @@
+ exec_prefix = @exec_prefix@
+ datadir = $(prefix)/@DATADIRNAME@
+ localedir = $(datadir)/locale
+-gnulocaledir = $(prefix)/share/locale
++gnulocaledir = $(STAGEDIR)$(prefix)/share/locale
+ gettextsrcdir = $(prefix)/share/gettext/po
+ subdir = po
+
diff --git a/ftp/weex/pkg-plist b/ftp/weex/pkg-plist
index bb098e1e292c..5e633e2648c8 100644
--- a/ftp/weex/pkg-plist
+++ b/ftp/weex/pkg-plist
@@ -1,4 +1,5 @@
bin/weex
+man/man1/weex.1.gz
%%NLS%%share/locale/de/LC_MESSAGES/weex.mo
%%NLS%%share/locale/es/LC_MESSAGES/weex.mo
%%NLS%%share/locale/fr/LC_MESSAGES/weex.mo