Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  9 Feb 2003 23:37:10 +0100 (CET)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        "Morten Winther" <mw@mwi.dk>
Subject:   ports/48121: New port: mail/pear-mailparse, PEAR classes to create and decode MIME messages.
Message-ID:  <20030209223710.F299B7511@graf.pompo.net>

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

>Number:         48121
>Category:       ports
>Synopsis:       New port: mail/pear-mailparse, PEAR classes to create and decode MIME messages.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 09 15:00:29 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Dec 29 12:46:07 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	This is a PHP extension. Actually, it should be built with pear,
	but this method requires libtool 1.4, which is unavailable on
	FreeBSD.

	Some people have requested for this extension (see
	Message-ID: <005f01c2ce07$be8b5350$0400a8c0@xp13> on <ports@FreeBSD.org>
	or PHP-bug #22075).

>How-To-Repeat:
	N/A.

>Fix:

	Pre-requisite: PR ports/47921 must be committed first.

	Then, please execute the following shar file:


# 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:
#
#	mail/pear-mailparse
#	mail/pear-mailparse/pkg-plist
#	mail/pear-mailparse/pkg-descr
#	mail/pear-mailparse/pkg-comment
#	mail/pear-mailparse/Makefile
#	mail/pear-mailparse/distinfo
#	mail/pear-mailparse/pkg-deinstall
#
echo c - mail/pear-mailparse
mkdir -p mail/pear-mailparse > /dev/null 2>&1
echo x - mail/pear-mailparse/pkg-plist
sed 's/^X//' >mail/pear-mailparse/pkg-plist << 'END-of-mail/pear-mailparse/pkg-plist'
X%%EXTDIR%%/mailparse.so
X%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS
X%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README
X%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.exp
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.txt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.exp
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.txt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.exp
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.txt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.exp
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.txt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/001.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/002.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/003.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/004.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/005.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/006.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/007.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/008.phpt
X%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/parse_test_messages.phpt
X%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse
X%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata
X%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/
END-of-mail/pear-mailparse/pkg-plist
echo x - mail/pear-mailparse/pkg-descr
sed 's/^X//' >mail/pear-mailparse/pkg-descr << 'END-of-mail/pear-mailparse/pkg-descr'
XMailparse is an extension for parsing and working with email messages.
XIt can deal with rfc822 and rfc2045 (MIME) compliant messages.
XMailparse is stream based, which means that it does not keep in-memory
Xcopies of the files it processes - so it is very resource efficient
Xwhen dealing with large messages.
X
XWWW: http://www.php.net/manual/en/ref.mailparse.php
END-of-mail/pear-mailparse/pkg-descr
echo x - mail/pear-mailparse/pkg-comment
sed 's/^X//' >mail/pear-mailparse/pkg-comment << 'END-of-mail/pear-mailparse/pkg-comment'
XPEAR classes to create and decode MIME messages
END-of-mail/pear-mailparse/pkg-comment
echo x - mail/pear-mailparse/Makefile
sed 's/^X//' >mail/pear-mailparse/Makefile << 'END-of-mail/pear-mailparse/Makefile'
X# Ports collection makefile for:  pear-mailparse
X# Date created:			  09 January 2003
X# Whom:				  Thierry Thomas (<thierry@pompo.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mailparse
XPORTVERSION=	0.9.1
XCATEGORIES=	mail www
XMASTER_SITES=	http://pear.php.net/get/
XPKGNAMEPREFIX=	pear-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PEAR
X
XMAINTAINER=	ports@FreeBSD.org
X
XBUILD_DEPENDS=	automake:${PORTSDIR}/devel/automake			\
X		autoconf:${PORTSDIR}/devel/autoconf213			\
X		${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4	\
X		${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS=	${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
X
X.include <bsd.port.pre.mk>
X
X# Don't call autoconf directly, ./buildconf does this
XGNU_CONFIGURE=	yes
XUSE_AUTOCONF=	no
XUSE_LIBTOOL=	no
XUSE_REINPLACE=	yes
X
XREINPLACE_ARGS=	-i.before_mailparse
X
X.if exists(${LOCALBASE}/bin/php-config)
XPHP_BASE!=	${LOCALBASE}/bin/php-config --prefix
XEXT_DIR!=	${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
X			"s:${PHP_BASE}/::"
X.else
XPHP_BASE!=	${LOCALBASE}
X.endif
XPEAR=		${LOCALBASE}/bin/pear
XLPHP_LIB=	lib/php
XPHP_DIR?=	${LOCALBASE}/etc
XPHP_INI=	${PHP_DIR}/php.ini
XPEARDIR=	${PHP_BASE}/${LPHP_LIB}
XPLIST_SUB=	EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB}
X
XDOCSDIR=	${PEARDIR}/docs/${PORTNAME}
XDOCS=		CREDITS README try.php
XTESTDIR=	${PEARDIR}/tests/${PORTNAME}
X
Xpost-patch:
X	(cd ${WRKSRC} && ${LOCALBASE}/bin/phpize)
X
Xpre-configure:
X	@if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \
X	    ${ECHO_MSG} "" ; \
X	    ${ECHO_MSG} "Please configure PHP with mbstring support." ; \
X	    ${ECHO_MSG} "" ; \
X	    ${FALSE} ; \
X	fi
X
Xpost-install:
X	@${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so
X# Configure extension_dir
X	@if [ ! -f ${PHP_INI} ]; then \
X		${ECHO_MSG} "===>   Creating ${PHP_INI} for PHP" ; \
X		${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
X	fi
X	@if ${GREP} -q -e '^extension_dir = ./' ${PHP_INI} ; then \
X		${ECHO_MSG} "===>   Configuring ${PHP_INI}" ; \
X		${REINPLACE_CMD} -e 's!^extension_dir = ./!extension_dir = ${PHP_BASE}/${EXT_DIR}!' \
X			${PHP_INI} ; \
X	fi
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X	@${MKDIR} ${TESTDIR}
X	@${CP} -Rp ${WRKSRC}/tests ${TESTDIR}
X	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR}
X	@${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
X.endif
X# Register a new package
X	@${PEAR} install -r -f ${WRKDIR}/package.xml
X
X.include <bsd.port.post.mk>
END-of-mail/pear-mailparse/Makefile
echo x - mail/pear-mailparse/distinfo
sed 's/^X//' >mail/pear-mailparse/distinfo << 'END-of-mail/pear-mailparse/distinfo'
XMD5 (PEAR/mailparse-0.9.1.tgz) = ae18c2fed49946bce049414b4cee3747
END-of-mail/pear-mailparse/distinfo
echo x - mail/pear-mailparse/pkg-deinstall
sed 's/^X//' >mail/pear-mailparse/pkg-deinstall << 'END-of-mail/pear-mailparse/pkg-deinstall'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# Remove package declaration from PEAR's registry.
X
Xif [ x$2 != xDEINSTALL ]; then
X    exit
Xfi
XPKG_NAME=${1%%-[0-9._]*}
XPACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
X
X${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
END-of-mail/pear-mailparse/pkg-deinstall
exit

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

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




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