pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/ocaml-expat Initial commit of ocaml-expat pac...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9a2134b6d1bc
branches: trunk
changeset: 609787:9a2134b6d1bc
user: jaapb <jaapb%pkgsrc.org@localhost>
date: Wed Oct 10 11:25:57 2012 +0000
description:
Initial commit of ocaml-expat package, version 0.9.1.
OCaml-expat is an OCaml binding for the expat XML library.
diffstat:
textproc/ocaml-expat/DESCR | 1 +
textproc/ocaml-expat/Makefile | 29 +++++++++++++++++++++++++++++
textproc/ocaml-expat/PLIST | 11 +++++++++++
textproc/ocaml-expat/distinfo | 6 ++++++
textproc/ocaml-expat/patches/patch-Makefile | 26 ++++++++++++++++++++++++++
5 files changed, 73 insertions(+), 0 deletions(-)
diffs (93 lines):
diff -r 0dff1db97b0f -r 9a2134b6d1bc textproc/ocaml-expat/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-expat/DESCR Wed Oct 10 11:25:57 2012 +0000
@@ -0,0 +1,1 @@
+OCaml-expat is an OCaml binding for the expat XML library.
diff -r 0dff1db97b0f -r 9a2134b6d1bc textproc/ocaml-expat/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-expat/Makefile Wed Oct 10 11:25:57 2012 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2012/10/10 11:25:57 jaapb Exp $
+#
+
+DISTNAME= ocaml-expat-0.9.1
+CATEGORIES= textproc
+MASTER_SITES= http://mmzeeman.home.xs4all.nl/ocaml/
+
+MAINTAINER= jaapb%NetBSD.org@localhost
+HOMEPAGE= http://mmzeeman.home.xs4all.nl/ocaml/
+COMMENT= OCaml bindings for the expat library
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gmake
+BUILD_TARGET= all
+
+PLIST_VARS+= opt
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64") || \
+ (${MACHINE_ARCH} == "arm")
+PLIST.opt= yes
+BUILD_TARGET+= allopt
+.endif
+
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../devel/ocaml-findlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0dff1db97b0f -r 9a2134b6d1bc textproc/ocaml-expat/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-expat/PLIST Wed Oct 10 11:25:57 2012 +0000
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2012/10/10 11:25:57 jaapb Exp $
+@unexec %D/libexec/ocaml-findlib-register del %D/lib/ocaml/site-lib/expat
+lib/ocaml/site-lib/expat/META
+lib/ocaml/site-lib/expat/dllmlexpat.so
+${PLIST.opt}lib/ocaml/site-lib/expat/expat.a
+lib/ocaml/site-lib/expat/expat.cma
+${PLIST.opt}lib/ocaml/site-lib/expat/expat.cmxa
+lib/ocaml/site-lib/expat/expat.cmi
+lib/ocaml/site-lib/expat/expat.mli
+lib/ocaml/site-lib/expat/libmlexpat.a
+@exec %D/libexec/ocaml-findlib-register add %D/lib/ocaml/site-lib/expat
diff -r 0dff1db97b0f -r 9a2134b6d1bc textproc/ocaml-expat/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-expat/distinfo Wed Oct 10 11:25:57 2012 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2012/10/10 11:25:57 jaapb Exp $
+
+SHA1 (ocaml-expat-0.9.1.tar.gz) = c0a65558cf996ac727fe5c61224d3e19dfd7d02a
+RMD160 (ocaml-expat-0.9.1.tar.gz) = be731eacff0a114d948cfaedfafe9b9fc6dc54e7
+Size (ocaml-expat-0.9.1.tar.gz) = 25223 bytes
+SHA1 (patch-Makefile) = 2b57503d9548d3d7c8334c48469140c963cbb346
diff -r 0dff1db97b0f -r 9a2134b6d1bc textproc/ocaml-expat/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-expat/patches/patch-Makefile Wed Oct 10 11:25:57 2012 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-Makefile,v 1.1 2012/10/10 11:25:57 jaapb Exp $
+
+Correct location for expat and add DESTDIR support
+--- Makefile.orig 2005-03-13 14:00:29.000000000 +0000
++++ Makefile
+@@ -3,8 +3,8 @@
+
+ # Change this to match your expat installation.
+ EXPAT_LIB=-lexpat
+-EXPAT_LIBDIR=/usr/local/lib
+-EXPAT_INCDIR=/usr/local/include
++EXPAT_LIBDIR=${PREFIX}/lib
++EXPAT_INCDIR=${PREFIX}/include
+
+ NAME=expat
+ OBJECTS=expat.cmo
+@@ -50,7 +50,8 @@ $(XARCHIVE): $(CARCHIVE) $(XOBJECTS)
+ .PHONY: install
+ install: all
+ { test ! -f $(XARCHIVE) || extra="$(XARCHIVE) $(NAME).a"; }; \
+- $(OCAMLFIND) install $(NAME) META $(NAME).cmi $(NAME).mli $(ARCHIVE) \
++ $(OCAMLFIND) install -destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib \
++ -ldconf ignore $(NAME) META $(NAME).cmi $(NAME).mli $(ARCHIVE) \
+ dll$(CARCHIVE_NAME).so lib$(CARCHIVE_NAME).a $$extra
+
+ .PHONY: uninstall
Home |
Main Index |
Thread Index |
Old Index