summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2014-10-27 12:01:36 +0000
committerjaapb <jaapb@pkgsrc.org>2014-10-27 12:01:36 +0000
commitd52b7a153a8af33c4abeda72673b81dee816f119 (patch)
tree4279be2b958575bbf5f50ab4e6f4583fb391d7bd /misc
parent38cdcdf95e2be3915f138e05e6e533b0c86ef9ad (diff)
downloadpkgsrc-d52b7a153a8af33c4abeda72673b81dee816f119.tar.gz
Added misc/dose3, a package repository analysis toolkit. This is a beta
version, but it includes some patches that I'd have needed to add to make the latest stable version anyway, so I decided to add this one.
Diffstat (limited to 'misc')
-rw-r--r--misc/dose3/DESCR3
-rw-r--r--misc/dose3/Makefile31
-rw-r--r--misc/dose3/PLIST66
-rw-r--r--misc/dose3/buildlink3.mk16
-rw-r--r--misc/dose3/distinfo9
-rw-r--r--misc/dose3/patches/patch-META.in14
-rw-r--r--misc/dose3/patches/patch-Makefile14
-rw-r--r--misc/dose3/patches/patch-Makefile.config.in29
-rw-r--r--misc/dose3/patches/patch-configure.ac21
9 files changed, 203 insertions, 0 deletions
diff --git a/misc/dose3/DESCR b/misc/dose3/DESCR
new file mode 100644
index 00000000000..b46f4628706
--- /dev/null
+++ b/misc/dose3/DESCR
@@ -0,0 +1,3 @@
+Dose is a library and a collection of tools to perform a large spectrum of
+analyses on package repositories. Dose manipulates package repositories from
+different sources such as Debian, RPM, Eclipse/OSGi and OpenCSW/Solaris.
diff --git a/misc/dose3/Makefile b/misc/dose3/Makefile
new file mode 100644
index 00000000000..3441f1dd0ff
--- /dev/null
+++ b/misc/dose3/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+DISTNAME= dose3-3.3-beta2
+PKGNAME= dose3-3.3beta2
+CATEGORIES= misc
+MASTER_SITES= https://gforge.inria.fr/frs/download.php/file/34180/
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://gforge.inria.fr/projects/dose/
+COMMENT= Package repository analysis toolkit
+LICENSE= gnu-lgpl-v3
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= aclocal automake autoconf gmake pod2man
+MAKE_JOBS_SAFE= no
+OCAML_USE_FINDLIB= yes
+
+.include "../../mk/ocaml.mk"
+
+.if ${OCAML_USE_OPT_COMPILER} != "yes"
+CONFIGURE_ARGS+= --with-bytecodeonly
+.endif
+
+pre-configure:
+ cd ${WRKSRC} && aclocal -I m4 && autoconf
+
+.include "../../devel/ocaml-extlib/buildlink3.mk"
+.include "../../devel/ocaml-re/buildlink3.mk"
+.include "../../lang/camlp4/buildlink3.mk"
+.include "../../misc/ocaml-cudf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/dose3/PLIST b/misc/dose3/PLIST
new file mode 100644
index 00000000000..161821e7cdb
--- /dev/null
+++ b/misc/dose3/PLIST
@@ -0,0 +1,66 @@
+@comment $NetBSD: PLIST,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+bin/apt-cudf
+bin/ceve
+bin/challenged
+bin/deb-buildcheck
+bin/deb-coinstall
+bin/debcheck
+bin/distcheck
+bin/eclipsecheck
+bin/outdated
+bin/rpmcheck
+${OCAML_SITELIB}/dose3/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/algo.a
+${OCAML_SITELIB}/dose3/algo.cma
+${OCAML_SITELIB}/dose3/algo.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/algo.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/algo.cmxs
+${OCAML_SITELIB}/dose3/architecture.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/common.a
+${OCAML_SITELIB}/dose3/common.cma
+${OCAML_SITELIB}/dose3/common.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/common.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/common.cmxs
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/csw.a
+${OCAML_SITELIB}/dose3/csw.cma
+${OCAML_SITELIB}/dose3/csw.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/csw.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/csw.cmxs
+${OCAML_SITELIB}/dose3/cudfAdd.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/cv.a
+${OCAML_SITELIB}/dose3/cv.cma
+${OCAML_SITELIB}/dose3/cv.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/cv.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/cv.cmxs
+${OCAML_SITELIB}/dose3/debcudf.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/debian.a
+${OCAML_SITELIB}/dose3/debian.cma
+${OCAML_SITELIB}/dose3/debian.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/debian.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/debian.cmxs
+${OCAML_SITELIB}/dose3/depsolver.mli
+${OCAML_SITELIB}/dose3/diagnostic.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparse.a
+${OCAML_SITELIB}/dose3/doseparse.cma
+${OCAML_SITELIB}/dose3/doseparse.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparse.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparse.cmxs
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparseNoRpm.a
+${OCAML_SITELIB}/dose3/doseparseNoRpm.cma
+${OCAML_SITELIB}/dose3/doseparseNoRpm.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparseNoRpm.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/doseparseNoRpm.cmxs
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/eclipse.a
+${OCAML_SITELIB}/dose3/eclipse.cma
+${OCAML_SITELIB}/dose3/eclipse.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/eclipse.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/dose3/eclipse.cmxs
+${OCAML_SITELIB}/dose3/edosSolver.mli
+${OCAML_SITELIB}/dose3/format822_parser.mli
+${OCAML_SITELIB}/dose3/input.mli
+${OCAML_SITELIB}/dose3/packages_parser.mli
+${OCAML_SITELIB}/dose3/release.mli
+${OCAML_SITELIB}/dose3/url.mli
+${OCAML_SITELIB}/dose3/util.mli
+${OCAML_SITELIB}/dose3/version.mli
+@pkgdir ${OCAML_SITELIB}/stublibs
diff --git a/misc/dose3/buildlink3.mk b/misc/dose3/buildlink3.mk
new file mode 100644
index 00000000000..97ab7f53bd8
--- /dev/null
+++ b/misc/dose3/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+BUILDLINK_TREE+= dose3
+
+.if !defined(DOSE3_BUILDLINK3_MK)
+DOSE3_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.dose3+= dose3>=3.3beta2
+BUILDLINK_PKGSRCDIR.dose3?= ../../misc/dose3
+
+.include "../../devel/ocaml-extlib/buildlink3.mk"
+.include "../../devel/ocaml-re/buildlink3.mk"
+.include "../../misc/ocaml-cudf/buildlink3.mk"
+.endif # DOSE3_3.3_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -dose3
diff --git a/misc/dose3/distinfo b/misc/dose3/distinfo
new file mode 100644
index 00000000000..c3249997ff6
--- /dev/null
+++ b/misc/dose3/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+SHA1 (dose3-3.3-beta2.tar.gz) = 8ae292162328356416dd5008db11c2bab8fbd834
+RMD160 (dose3-3.3-beta2.tar.gz) = 6b9a25539102a6ba579bf21064d6fe159842692f
+Size (dose3-3.3-beta2.tar.gz) = 257564 bytes
+SHA1 (patch-META.in) = 13bede847fef7b94fe30ac9b7c339572e8212e8d
+SHA1 (patch-Makefile) = 4f50c506798a0749d2bd6d3ca975ecf8b107a75f
+SHA1 (patch-Makefile.config.in) = e2fe2efb61c18f099dd9ae29ef35ef8c8f943a61
+SHA1 (patch-configure.ac) = 88ecf59fd023b183f60192ab46243ce084ffaa28
diff --git a/misc/dose3/patches/patch-META.in b/misc/dose3/patches/patch-META.in
new file mode 100644
index 00000000000..842699a4465
--- /dev/null
+++ b/misc/dose3/patches/patch-META.in
@@ -0,0 +1,14 @@
+$NetBSD: patch-META.in,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+Proper ocamlgraph detection
+--- META.in.orig 2014-10-21 11:45:17.000000000 +0000
++++ META.in
+@@ -2,7 +2,7 @@ description = "Dose3 libraries"
+ version = "@PACKAGE_VERSION@"
+ archive(byte) = "common.cma algo.cma debian.cma eclipse.cma csw.cma"
+ archive(native) = "common.cmxa algo.cmxa debian.cmxa eclipse.cmxa csw.cmxa"
+-requires = "extlib, re.pcre, cudf, ocamlgraph, unix, @ZIP@, @BZ2@"
++requires = "extlib, re.pcre, cudf, @OCAMLGRAPH@, unix, @ZIP@, @BZ2@"
+
+ package "common" (
+ version = "@PACKAGE_VERSION@"
diff --git a/misc/dose3/patches/patch-Makefile b/misc/dose3/patches/patch-Makefile
new file mode 100644
index 00000000000..a1a75af0b83
--- /dev/null
+++ b/misc/dose3/patches/patch-Makefile
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+Use proper location for camlp4
+--- Makefile.orig 2014-10-21 11:45:17.000000000 +0000
++++ Makefile
+@@ -41,7 +41,7 @@ itarget:
+
+ _build/Camlp4MacroParser.cmxs:
+ mkdir -p _build
+- ocamlopt -shared $(shell ocamlc -where)/camlp4/Camlp4Parsers/Camlp4MacroParser.cmx -o _build/Camlp4MacroParser.cmxs
++ ocamlopt -shared ${PREFIX}/lib/ocaml/camlp4/Camlp4Parsers/Camlp4MacroParser.cmx -o _build/Camlp4MacroParser.cmxs
+
+ $(DOSELIBS)/cudf.%:
+ $(OCAMLBUILD) $(OBFLAGS) cudf/cudf.$*
diff --git a/misc/dose3/patches/patch-Makefile.config.in b/misc/dose3/patches/patch-Makefile.config.in
new file mode 100644
index 00000000000..d01acce7ab7
--- /dev/null
+++ b/misc/dose3/patches/patch-Makefile.config.in
@@ -0,0 +1,29 @@
+$NetBSD: patch-Makefile.config.in,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+Use OCaml site-lib directory for installation
+--- Makefile.config.in.orig 2014-10-21 11:45:17.000000000 +0000
++++ Makefile.config.in
+@@ -9,21 +9,12 @@ OCAMLFIND=@OCAMLFIND@
+
+ DOSELIBS = _build/doselibs
+
+-DESTDIR =
+-ifeq ($(DESTDIR),)
+ exec_prefix=@prefix@
+-BINDIR=@bindir@
+-LIBDIR=$(shell ocamlfind printconf destdir)
++BINDIR=${DESTDIR}@bindir@
++LIBDIR=${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}
+
+ INSTALL=$(OCAMLFIND) install -destdir $(LIBDIR)
+ UNINSTALL=$(OCAMLFIND) remove -destdir $(LIBDIR)
+-else
+-LIBDIR = $(DESTDIR)/$(shell ocamlc -where)
+-BINDIR = $(DESTDIR)/usr/bin
+-
+-INSTALL = $(OCAMLFIND) install -destdir $(LIBDIR)
+-UNINSTALL = $(OCAMLFIND) remove -destdir $(LIBDIR)
+-endif
+
+ ifeq ("@OCAML_OS_TYPE@","freebsd")
+ LDFLAGS += -fstack-protector
diff --git a/misc/dose3/patches/patch-configure.ac b/misc/dose3/patches/patch-configure.ac
new file mode 100644
index 00000000000..5c94ba792c9
--- /dev/null
+++ b/misc/dose3/patches/patch-configure.ac
@@ -0,0 +1,21 @@
+$NetBSD: patch-configure.ac,v 1.1 2014/10/27 12:01:36 jaapb Exp $
+
+Proper ocamlgraph detection
+--- configure.ac.orig 2014-10-21 11:45:17.000000000 +0000
++++ configure.ac
+@@ -147,6 +147,7 @@ if test "$HAS_OCAMLGRAPH" = "yes" ; then
+ MLPACK_OCAMLGRAPH="Defaultgraphs Statistics Dominators Strongdeps Strongdeps_int Strongconflicts Strongconflicts_int"
+ DOC_OCAMLGRAPH="algo/Strongdeps algo/Strongconflicts algo/Strongdeps_int algo/Strongconflicts_int algo/Defaultgraphs algo/Statistics"
+ CONFIG_OCAMLGRAPH="-DHASOCAMLGRAPH"
++ OCAMLGRAPH=ocamlgraph
+ fi
+
+ AC_ARG_WITH(curl,
+@@ -286,6 +287,7 @@ AC_SUBST(MLPACK_OCAMLGRAPH)
+ AC_SUBST(DOC_OCAMLGRAPH)
+ AC_SUBST(PKG_OCAMLGRAPH)
+ AC_SUBST(CONFIG_OCAMLGRAPH)
++AC_SUBST(OCAMLGRAPH)
+
+ AC_SUBST(PKG_CURL)
+