aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2011-05-27 05:20:41 +0800
committerbeech <beech@FreeBSD.org>2011-05-27 05:20:41 +0800
commite93edd2e17cc14748f6c5f61701e00d0f82565af (patch)
treebcb040b44f263b7d3cb83793c0cc0cff589ad5b0 /devel
parentea651b66cf39b2e9d82f50c0990afdeb4b1c0c94 (diff)
downloadfreebsd-ports-gnome-e93edd2e17cc14748f6c5f61701e00d0f82565af.tar.gz
freebsd-ports-gnome-e93edd2e17cc14748f6c5f61701e00d0f82565af.tar.zst
freebsd-ports-gnome-e93edd2e17cc14748f6c5f61701e00d0f82565af.zip
- New port horde4-translation-1.0.0
- Horde translation library.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/horde4-translation/Makefile43
-rw-r--r--devel/horde4-translation/distinfo2
-rw-r--r--devel/horde4-translation/files/pkg-message.in7
-rw-r--r--devel/horde4-translation/pkg-descr3
-rw-r--r--devel/horde4-translation/pkg-plist8
6 files changed, 64 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 4d54092f2b7c..1ba41148bbdd 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -558,6 +558,7 @@
SUBDIR += horde4-date
SUBDIR += horde4-dateparser
SUBDIR += horde4-rdo
+ SUBDIR += horde4-translation
SUBDIR += hp48cc
SUBDIR += hp48xgcc
SUBDIR += hs-Boolean
diff --git a/devel/horde4-translation/Makefile b/devel/horde4-translation/Makefile
new file mode 100644
index 000000000000..c8bba1fd01b5
--- /dev/null
+++ b/devel/horde4-translation/Makefile
@@ -0,0 +1,43 @@
+# Ports collection makefile for: horde4-translation
+# Date created: THU May 26, 2011
+# Whom: Beech Rintoul <beech@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= translation
+PORTVERSION= 1.0.0
+DISTVERSIONPREFIX=
+DISTVERSIONSUFFIX=
+CATEGORIES= devel www
+MASTER_SITES= http://pear.horde.org/get/ \
+ LOCAL/beech
+PKGNAMEPREFIX= horde4-
+DISTNAME= Horde_Translation-${PORTVERSION}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= beech@FreeBSD.org
+COMMENT= Horde translation library
+
+USE_HORDE= base
+USE_GETTEXT= yes
+TRNDIR= Translation
+HORDIR+= ${HORBAS}${TRNDIR:S|^|/|:S|/horde||}
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/config && touch ${WRKSRC}/config/placeholder.dist
+
+do-install:
+ @${INSTALL} -d ${HORDIR}/
+ @${CP} ${WRKSRC}/lib/Horde/Translation.php ${HORBAS}/
+ @${CP} -Rp ${WRKSRC}/lib/Horde/Translation/ ${HORDIR}/
+ @${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} %D/${HORDIR:S|^${PREFIX}/||}/ >> ${TMPPLIST}
+ @${ECHO_CMD} @exec ${CHMOD} -R o-rwx %D/${HORDIR:S|^${PREFIX}/||}/ >> ${TMPPLIST}
+ @${ECHO_CMD} "@exec ${TOUCH} ${HORLOG};${CHOWN} ${WWWOWN}:${WWWGRP} ${HORLOG}" >> ${TMPPLIST}
+
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO_MSG}
+
+.include "${.CURDIR}/../../www/horde4-base/bsd.horde4.mk"
+.include <bsd.port.mk>
diff --git a/devel/horde4-translation/distinfo b/devel/horde4-translation/distinfo
new file mode 100644
index 000000000000..8a2ce60c6a27
--- /dev/null
+++ b/devel/horde4-translation/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Horde_Translation-1.0.0.tgz) = d79ec2649ed6271fcbe2aebc7fbdc855f54ff8c85dd80befb358283429255ce8
+SIZE (Horde_Translation-1.0.0.tgz) = 4673
diff --git a/devel/horde4-translation/files/pkg-message.in b/devel/horde4-translation/files/pkg-message.in
new file mode 100644
index 000000000000..c11196c918a9
--- /dev/null
+++ b/devel/horde4-translation/files/pkg-message.in
@@ -0,0 +1,7 @@
+************************************************************************
+Translation has been installed in %%HORDIR%%/.
+
+Horde must be configured and the tables created; if not, see
+`pkg_info -Dx horde-base'.
+
+************************************************************************
diff --git a/devel/horde4-translation/pkg-descr b/devel/horde4-translation/pkg-descr
new file mode 100644
index 000000000000..616feb9ed2b3
--- /dev/null
+++ b/devel/horde4-translation/pkg-descr
@@ -0,0 +1,3 @@
+Horde translation library.
+
+WWW: http://www.horde.org
diff --git a/devel/horde4-translation/pkg-plist b/devel/horde4-translation/pkg-plist
new file mode 100644
index 000000000000..709b980cb70f
--- /dev/null
+++ b/devel/horde4-translation/pkg-plist
@@ -0,0 +1,8 @@
+%%HORBAS%%/Translation.php
+%%HORDIR%%/Exception.php
+%%HORDIR%%/Handler.php
+%%HORDIR%%/Handler/Gettext.php
+@dirrm %%HORDIR%%/Handler
+@dirrmtry %%HORDIR%%
+@dirrmtry %%HORBAS%%
+