pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ocsigen-i18n New package www/ocsigen-i18n, which d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b9cbdf2b542
branches:  trunk
changeset: 381353:6b9cbdf2b542
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Tue Jun 05 16:02:39 2018 +0000

description:
New package www/ocsigen-i18n, which does exactly what its name suggests

diffstat:

 www/ocsigen-i18n/DESCR                  |   1 +
 www/ocsigen-i18n/Makefile               |  29 +++++++++++++++++++++++++++++
 www/ocsigen-i18n/PLIST                  |   5 +++++
 www/ocsigen-i18n/buildlink3.mk          |  12 ++++++++++++
 www/ocsigen-i18n/distinfo               |   7 +++++++
 www/ocsigen-i18n/patches/patch-Makefile |  27 +++++++++++++++++++++++++++
 6 files changed, 81 insertions(+), 0 deletions(-)

diffs (105 lines):

diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/DESCR    Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,1 @@
+Ocsigen-i18n is a package that adds internationalisation support to Ocsigen.
diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/Makefile Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2018/06/05 16:02:40 jaapb Exp $
+
+GITHUB_PROJECT=        ocsigen-i18n
+DISTNAME=      ${GITHUB_PROJECT}-3.1.0
+CATEGORIES=    www
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=besport/}
+
+MAINTAINER=    jaapb%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/besport/ocsigen-i18n/
+COMMENT=       i18n package for Ocsigen
+LICENSE=       gnu-lgpl-v2.1
+
+USE_LANGUAGES= # none
+USE_TOOLS=     gmake
+BUILD_TARGET=  build
+MAKE_ENV=      bindir=${DESTDIR}${PREFIX}/bin
+INSTALLATION_DIRS+=    bin
+
+OCAML_USE_FINDLIB=     yes
+
+.include "../../mk/ocaml.mk"
+
+.if ${OCAML_USE_OPT_COMPILER} == "yes"
+MAKE_ENV+=     OPTNESS=native
+.else
+MAKE_ENV+=     OPTNESS=byte
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/PLIST    Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2018/06/05 16:02:40 jaapb Exp $
+bin/ocsigen-i18n-checker
+bin/ocsigen-i18n-generator
+bin/ocsigen-i18n-rewriter
+@pkgdir ${OCAML_SITELIB}
diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/buildlink3.mk    Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/06/05 16:02:40 jaapb Exp $
+
+BUILDLINK_TREE+=       ocsigen-i18n
+
+.if !defined(OCSIGEN_I18N_BUILDLINK3_MK)
+OCSIGEN_I18N_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocsigen-i18n+=   ocsigen-i18n>=3.1.0
+BUILDLINK_PKGSRCDIR.ocsigen-i18n?=     ../../www/ocsigen-i18n
+.endif # OCSIGEN_I18N_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -ocsigen-i18n
diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/distinfo Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/06/05 16:02:40 jaapb Exp $
+
+SHA1 (ocsigen-i18n-3.1.0.tar.gz) = 367aa892c3ecf91ad23f89915554e93c3c573225
+RMD160 (ocsigen-i18n-3.1.0.tar.gz) = c4973cc7ea39a51f1f2fc57acbe9f37c8523b694
+SHA512 (ocsigen-i18n-3.1.0.tar.gz) = a103c8da39ffadbe90ef183ee9ad3b68f3b5feb8dd5cf9d94f37880dcfedd495bbe799e218e739eb830e8dc7c8636edbd8c00ce9c0843ecf8047f9eb00b9f18f
+Size (ocsigen-i18n-3.1.0.tar.gz) = 6066 bytes
+SHA1 (patch-Makefile) = a3b5ac9c4572c37339813f017a079f39d3c47954
diff -r 2b43c3a33927 -r 6b9cbdf2b542 www/ocsigen-i18n/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ocsigen-i18n/patches/patch-Makefile   Tue Jun 05 16:02:39 2018 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-Makefile,v 1.1 2018/06/05 16:02:40 jaapb Exp $
+
+Use proper installation programs and native compilation
+--- Makefile.orig      2017-01-16 16:05:43.000000000 +0000
++++ Makefile
+@@ -1,4 +1,8 @@
++ifeq (${OPTNESS},native)
++OCAMLC=ocamlfind ocamlopt
++else
+ OCAMLC=ocamlfind ocamlc
++endif
+ CHECKER=ocsigen-i18n-checker
+ REWRITER=ocsigen-i18n-rewriter
+ GENERATOR=ocsigen-i18n-generator
+@@ -26,7 +30,11 @@ install: ${PROGS}
+ ifndef bindir
+       ${error bindir is not set}
+ else
+-      cp ${PROGS} ${bindir}
++ifeq ($(OPTNESS),native)
++      ${BSD_INSTALL_PROGRAM} ${PROGS} ${bindir}
++else
++      ${BSD_INSTALL_SCRIPT} ${PROGS} ${bindir}
++endif
+ endif
+ 
+ uninstall:



Home | Main Index | Thread Index | Old Index