ports/89567: New port: textproc/pcrs PCRE sed
wongk at apt.homeunix.net
wongk at apt.homeunix.net
Sat Nov 26 08:50:03 UTC 2005
>Number: 89567
>Category: ports
>Synopsis: New port: textproc/pcrs PCRE sed
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 26 08:50:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: User &
>Release: FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD dev0.apt.homeunix.net 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Jan 10 12:44:15 CST 2005 root at dev0.abo.dnsalias.org:/usr/obj/usr/src/sys/DEV0 i386
>Description:
PCRS is a small library, written as a supplement to the PCRE library,
that implements regex based substitution with the syntax and semantics
of Perl's s/// operator.
>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:
#
# /usr/ports/textproc/pcrs
# /usr/ports/textproc/pcrs/pkg-descr
# /usr/ports/textproc/pcrs/distinfo
# /usr/ports/textproc/pcrs/Makefile
# /usr/ports/textproc/pcrs/files
# /usr/ports/textproc/pcrs/files/patch-configure
# /usr/ports/textproc/pcrs/files/patch-Makefile.in
#
echo c - /usr/ports/textproc/pcrs
mkdir -p /usr/ports/textproc/pcrs > /dev/null 2>&1
echo x - /usr/ports/textproc/pcrs/pkg-descr
sed 's/^X//' >/usr/ports/textproc/pcrs/pkg-descr << 'END-of-/usr/ports/textproc/pcrs/pkg-descr'
XPCRS is a small library, written as a supplement to the PCRE library,
Xthat implements regex based substitution with the syntax and semantics
Xof Perl's s/// operator.
X
XWWW: http://www.oesterhelt.org/pcrs/
END-of-/usr/ports/textproc/pcrs/pkg-descr
echo x - /usr/ports/textproc/pcrs/distinfo
sed 's/^X//' >/usr/ports/textproc/pcrs/distinfo << 'END-of-/usr/ports/textproc/pcrs/distinfo'
XMD5 (pcrs-0.0.3-src.tar.gz) = a6070f22f7eee5637c14342b71b36ff5
XSIZE (pcrs-0.0.3-src.tar.gz) = 32296
END-of-/usr/ports/textproc/pcrs/distinfo
echo x - /usr/ports/textproc/pcrs/Makefile
sed 's/^X//' >/usr/ports/textproc/pcrs/Makefile << 'END-of-/usr/ports/textproc/pcrs/Makefile'
X# New ports collection makefile for: pcrs
X# Date created: 31 July 2005
X# Whom: Ken Wong <wongk at apt.homeunix.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= pcrs
XPORTVERSION= 0.0.3
XCATEGORIES= textproc
XMASTER_SITES= http://www.oesterhelt.org/pcrs/\
X http://distfiles.master.finkmirrors.net/\
X http://download.mirror.ac.uk/mirror/master.us.finkmirrors.net/distfiles/\
X http://mirror.phy.olemiss.edu/mirror/fink/distfiles/
XDISTNAME= ${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER= wongk at apt.homeunix.net
XCOMMENT= Perl compatible regular expression based substitutions
X
XLIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
X
XWRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XGNU_CONFIGURE= yes
XUSE_GMAKE= yes
X
XINSTALLS_SHLIB= yes
X
XMAN3= pcrs.3
XPLIST_FILES= bin/pcrsed \
X lib/libpcrs.a \
X lib/libpcrs.so \
X lib/libpcrs.so.0
X
Xpost-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/pcrsed ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-/usr/ports/textproc/pcrs/Makefile
echo c - /usr/ports/textproc/pcrs/files
mkdir -p /usr/ports/textproc/pcrs/files > /dev/null 2>&1
echo x - /usr/ports/textproc/pcrs/files/patch-configure
sed 's/^X//' >/usr/ports/textproc/pcrs/files/patch-configure << 'END-of-/usr/ports/textproc/pcrs/files/patch-configure'
X--- configure.orig Tue Dec 2 10:45:42 2003
X+++ configure Sat Nov 26 02:57:22 2005
X@@ -19,12 +19,12 @@
X # dashes changed to underlines.
X build=NONE
X cache_file=./config.cache
X-exec_prefix=NONE
X+exec_prefix=/usr/local
X host=NONE
X no_create=
X nonopt=NONE
X no_recursion=
X-prefix=NONE
X+prefix=/usr/local
X program_prefix=NONE
X program_suffix=NONE
X program_transform_name=s,x,x,
X@@ -42,8 +42,8 @@
X sysconfdir='${prefix}/etc'
X sharedstatedir='${prefix}/com'
X localstatedir='${prefix}/var'
X-libdir='${exec_prefix}/lib'
X-includedir='${prefix}/include'
X+libdir="${exec_prefix}/lib"
X+includedir="${prefix}/include"
X oldincludedir='/usr/include'
X infodir='${prefix}/info'
X mandir='${prefix}/man'
X@@ -685,9 +685,9 @@
X rm -fr conftest*
X ac_ext=c
X # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
X-ac_cpp='$CPP $CPPFLAGS'
X+ac_cpp='$CPP -I${includedir} -L${libdir} $CPPFLAGS'
X ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
X-ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
X+ac_link='${CC-cc} -I${includedir} -L${libdir} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
X cross_compiling=$ac_cv_prog_cc_cross
X
X echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
END-of-/usr/ports/textproc/pcrs/files/patch-configure
echo x - /usr/ports/textproc/pcrs/files/patch-Makefile.in
sed 's/^X//' >/usr/ports/textproc/pcrs/files/patch-Makefile.in << 'END-of-/usr/ports/textproc/pcrs/files/patch-Makefile.in'
X--- Makefile.in.orig Sun Mar 10 15:56:16 2002
X+++ Makefile.in Sat Nov 26 02:57:22 2005
X@@ -19,6 +19,7 @@
X
X BINDIR = @bindir@
X LIBDIR = @libdir@
X+INCLUDEDIR = @includedir@
X MANDIR = @mandir@/man3
X
X
X@@ -47,6 +48,7 @@
X #############################################################################
X
X CFLAGS = @CFLAGS@ -Wall -Wstrict-prototypes -Wshadow -Wconversion -pedantic \
X+ -I$(INCLUDEDIR) -L$(LIBDIR) \
X @PARANOID_FU@ -Wunreachable-code -Wmissing-prototypes \
X -Waggregate-return -W -Wfloat-equal -Wsign-compare \
X -Wwrite-strings
X@@ -66,29 +68,25 @@
X $(CC) $(CFLAGS) pcrsed.c pcrs. at OBJEXT@ -o pcrsed at EXEEXT@ $(LIBS)
X
X shared: pcrs. at OBJEXT@
X- $(CC) $(CLFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION) pcrs. at OBJEXT@ $(LIBS)
X+ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -Wl,-soname,libpcrs.so.$(VERSION_MAJOR) -o libpcrs.so.$(VERSION_MAJOR) pcrs. at OBJEXT@ $(LIBS)
X
X static:
X $(AR) libpcrs.a pcrs. at OBJEXT@
X
X install: all
X- $(INSTALL) -m 755 libpcrs.so.$(VERSION) $(LIBDIR)
X- $(LN_S) -f libpcrs.so.$(VERSION) $(LIBDIR)/libpcrs.so
X- $(INSTALL) -m 644 libpcrs.a $(LIBDIR)
X+ $(INSTALL) -m 755 libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib
X+ $(LN_S) -f libpcrs.so.$(VERSION_MAJOR) $(prefix)/lib/libpcrs.so
X+ $(INSTALL) -m 644 libpcrs.a $(prefix)/lib
X $(INSTALL) -m 644 pcrs.3 $(MANDIR)
X
X- if test "$(HAVE_GZIP)" = "yes"; then \
X- gzip -f $(MANDIR)/pcrs.3; \
X- fi
X-
X @echo -e " ***************************************************\n" \
X- "** Libraries have been installed in $(LIBDIR). \n" \
X+ "** Libraries have been installed in $(prefix)/lib. \n" \
X "** Don't forget to run ldconfig. \n" \
X "***************************************************"
X
X @if test -f pcrsed at EXEEXT@; then\
X echo -e "\nRebuilding pcrsed to use the installed shared library"; \
X- $(CC) $(CFLAGS) -L$(LIBDIR) pcrsed.c -o pcrsed at EXEEXT@ $(LIBS) -lpcrs; \
X+ $(CC) $(CFLAGS) -L$(prefix)/lib pcrsed.c -o pcrsed at EXEEXT@ $(LIBS) -lpcrs; \
X fi
X
X clean:
END-of-/usr/ports/textproc/pcrs/files/patch-Makefile.in
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list