Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2002 18:54:32 +0200 (CEST)
From:      Michaël Grünewald <michael@ketanu.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42554: new port:
Message-ID:  <200209081654.g88GsWut024412@ketanu.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         42554
>Category:       ports
>Synopsis:       new port:
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 08 10:00:13 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michaël Grünewald
>Release:        FreeBSD 4.6.1-RELEASE-p10 i386
>Organization:
(none)
>Environment:
System: FreeBSD ketanu.dyndns.org 4.6.1-RELEASE-p10 FreeBSD 4.6.1-RELEASE-p10 #0: Wed Aug 7 01:52:16 CEST 2002 root@ketanu.dyndns.org:/usr/obj/usr/src/sys/KETANU i386

>Description:
Bindings for using the `pcre' lirary (Perl Compatible Regular
Expressions) in objective caml programms.

PCRE library and bindings:

WWW: www.pcre.org
WWW: www.ai.univie.ac.at/~markus/home/ocaml_sources.html#toc9

objective caml langage 

WWW: caml.inria.fr

*Here are possible sources of problem within the port:

1/The ports uses the 3.2 release of the pcre (release >= 3) library to
build so i tried the line

LIB_DEPENDS=		pcre.3:${PORTSDIR}/devel/pcre:install

but it tried to build and install pcre, although pcre was already
installed, removing the `.3' sequence remove the problem, but seems
abnormal to me.

2/The port supports the ${PREFIX} convention, but needs to find the the
`pcre.h' file in ${PREFIX used to install pcre}/include but search it in
${PREFIX}/include, and i do not know how to express this in the port nor
to fix it. 

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pcre-ocaml
#	pcre-ocaml/Makefile
#	pcre-ocaml/distinfo
#	pcre-ocaml/pkg-comment
#	pcre-ocaml/pkg-descr
#	pcre-ocaml/pkg-plist
#	pcre-ocaml/files
#	pcre-ocaml/files/Makefile
#	pcre-ocaml/files/Makefile.conf
#	pcre-ocaml/files/patch-Makefile
#	pcre-ocaml/files/patch-Makefile.conf
#
echo c - pcre-ocaml
mkdir -p pcre-ocaml > /dev/null 2>&1
echo x - pcre-ocaml/Makefile
sed 's/^X//' >pcre-ocaml/Makefile << 'END-of-pcre-ocaml/Makefile'
X# New ports collection makefile for:   pcre-ocaml
X# Date created:		Ven 16 aoû 2002 02:05:08 CEST
X# Whom:               	Michaël Grünewald
X#
X# $FreeBSD$
X#
X
XPORTNAME=		pcre-ocaml
XPORTVERSION=		4.28.2
XCATEGORIES=		devel
XMASTER_SITES=		http://www.ai.univie.ac.at/~markus/ocaml_sources/
X
XMAINTAINER=		michaelgrunewald@yahoo.fr
X
XLIB_DEPENDS=		pcre:${PORTSDIR}/devel/pcre:install
XBUILD_DEPENDS=  	ocamlc:${PORTSDIR}/lang/ocaml
X
XNO_INSTALL_MANPAGES=	yes
XUSE_GMAKE=		yes
X
XEXAMPLEDIRS=		cloc count_hash pcregrep subst
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
X.for exampledir in ${EXAMPLEDIRS}
X	${MKDIR} ${PREFIX}/share/examples/${PORTNAME}/${exampledir}
X	${INSTALL_DATA} ${WRKSRC}/examples/${exampledir}/* \
X		${PREFIX}/share/examples/${PORTNAME}/${exampledir}
X.endfor
X.endif
X
X
X.include <bsd.port.mk>
END-of-pcre-ocaml/Makefile
echo x - pcre-ocaml/distinfo
sed 's/^X//' >pcre-ocaml/distinfo << 'END-of-pcre-ocaml/distinfo'
XMD5 (pcre-ocaml-4.28.2.tar.gz) = a58f4388665e66a5f5e58513049217e5
END-of-pcre-ocaml/distinfo
echo x - pcre-ocaml/pkg-comment
sed 's/^X//' >pcre-ocaml/pkg-comment << 'END-of-pcre-ocaml/pkg-comment'
XPerl compatibility regular expressions for OCaml
END-of-pcre-ocaml/pkg-comment
echo x - pcre-ocaml/pkg-descr
sed 's/^X//' >pcre-ocaml/pkg-descr << 'END-of-pcre-ocaml/pkg-descr'
XThis OCaml-library interfaces the PCRE (Perl-compatibility regular
Xexpressions) library which is written in C. it can be used for matching
Xregular expressions which are written in "PERL"-style.
X  
XSearching for, replacing or splitting text should become much easier
Xwith this library.
X
XOriginal author:  Markus Mottl  <markus@oefai.at>
X
XWWW: www.ai.univie.ac.at/~markus/home/ocaml_sources.html#toc9
X
X- Michael Grunewald
Xmichaelgrunewald@ayhoo.fr
END-of-pcre-ocaml/pkg-descr
echo x - pcre-ocaml/pkg-plist
sed 's/^X//' >pcre-ocaml/pkg-plist << 'END-of-pcre-ocaml/pkg-plist'
Xlib/ocaml/site-lib/pcre/META
Xlib/ocaml/site-lib/pcre/pcre.mli
Xlib/ocaml/site-lib/pcre/pcre.cmi
Xlib/ocaml/site-lib/pcre/pcre.cma
Xlib/ocaml/site-lib/pcre/libpcre_stubs.a
Xlib/ocaml/site-lib/pcre/dllpcre_stubs.so
Xshare/examples/pcre-ocaml/cloc/Makefile
Xshare/examples/pcre-ocaml/cloc/README
Xshare/examples/pcre-ocaml/cloc/cloc.ml
Xshare/examples/pcre-ocaml/count_hash/Makefile
Xshare/examples/pcre-ocaml/count_hash/README
Xshare/examples/pcre-ocaml/count_hash/count_hash.ml
Xshare/examples/pcre-ocaml/pcregrep/Makefile
Xshare/examples/pcre-ocaml/pcregrep/README
Xshare/examples/pcre-ocaml/pcregrep/pcregrep.ml
Xshare/examples/pcre-ocaml/subst/Makefile
Xshare/examples/pcre-ocaml/subst/README
Xshare/examples/pcre-ocaml/subst/subst.ml
X@dirrm lib/ocaml/site-lib/pcre
X@dirrm share/examples/pcre-ocaml/cloc
X@dirrm share/examples/pcre-ocaml/count_hash
X@dirrm share/examples/pcre-ocaml/pcregrep
X@dirrm share/examples/pcre-ocaml/subst
X@dirrm share/examples/pcre-ocaml
END-of-pcre-ocaml/pkg-plist
echo c - pcre-ocaml/files
mkdir -p pcre-ocaml/files > /dev/null 2>&1
echo x - pcre-ocaml/files/Makefile
sed 's/^X//' >pcre-ocaml/files/Makefile << 'END-of-pcre-ocaml/files/Makefile'
X-include Makefile.conf
X
XEXAMPLES = $(filter-out examples/CVS, $(wildcard examples/*))
X
X.PHONY: all
Xall:
X	@cd lib && $(MAKE) byte-code-library
X
X.PHONY: opt
Xopt:
X	@cd lib && $(MAKE) native-code-library
X
X.PHONY:	examples
Xexamples:
X	@for dir in $(EXAMPLES); do (cd $$dir && $(MAKE)); done
X
X.PHONY:	doc
Xdoc:
X	@cd lib && $(MAKE) doc
X	ln -sf lib/doc
X
X.PHONY:	install
Xinstall:
X	@cd lib && $(MAKE) install
X	install -d $(OCAML_LIB_INSTALL)
X	install -m 644 META $(OCAML_LIB_INSTALL)
X
X.PHONY:	uninstall
Xuninstall:
X	@cd lib && $(MAKE) uninstall
X
X.PHONY:	clean
Xclean:
X	@cd lib && $(MAKE) clean
X	@for dir in $(EXAMPLES); do (cd $$dir && $(MAKE) clean); done
X	@rm -f doc
END-of-pcre-ocaml/files/Makefile
echo x - pcre-ocaml/files/Makefile.conf
sed 's/^X//' >pcre-ocaml/files/Makefile.conf << 'END-of-pcre-ocaml/files/Makefile.conf'
X# export STATIC = yes
X# export INCDIRS := /usr/include/pcre
X# export LIBDIRS :=
X
Xexport INCDIRS := $(PREFIX)/include
Xexport LIBDIRS := $(PREFIX)/lib
X
Xexport OCAML_LIB_INSTALL := $(PREFIX)/lib/ocaml/site-lib/pcre
END-of-pcre-ocaml/files/Makefile.conf
echo x - pcre-ocaml/files/patch-Makefile
sed 's/^X//' >pcre-ocaml/files/patch-Makefile << 'END-of-pcre-ocaml/files/patch-Makefile'
X--- ../work/pcre-ocaml-4.27.2/Makefile	Sat May  4 17:55:00 2002
X+++ Makefile	Fri Aug 16 01:38:06 2002
X@@ -22,6 +22,8 @@
X .PHONY:	install
X install:
X 	@cd lib && $(MAKE) install
X+	install -d $(OCAML_LIB_INSTALL)
X+	install -m 644 META $(OCAML_LIB_INSTALL)
X 
X .PHONY:	uninstall
X uninstall:
END-of-pcre-ocaml/files/patch-Makefile
echo x - pcre-ocaml/files/patch-Makefile.conf
sed 's/^X//' >pcre-ocaml/files/patch-Makefile.conf << 'END-of-pcre-ocaml/files/patch-Makefile.conf'
X--- ../work/pcre-ocaml-4.27.2/Makefile.conf	Wed May  1 18:26:58 2002
X+++ Makefile.conf	Fri Aug 16 01:37:30 2002
X@@ -1,3 +1,8 @@
X # export STATIC = yes
X # export INCDIRS := /usr/include/pcre
X # export LIBDIRS :=
X+
X+export INCDIRS := $(PREFIX)/include
X+export LIBDIRS := $(PREFIX)/lib
X+
X+export OCAML_LIB_INSTALL := $(PREFIX)/lib/ocaml/site-lib/pcre
END-of-pcre-ocaml/files/patch-Makefile.conf
exit



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209081654.g88GsWut024412>