View | Details | Raw Unified | Return to bug 52641
Collapse All | Expand All

(-)mail/pear-Mail_Mime/Makefile (-23 / +4 lines)
Lines 7-38 Link Here
7
7
8
PORTNAME=	Mail_Mime
8
PORTNAME=	Mail_Mime
9
PORTVERSION=	1.2.1
9
PORTVERSION=	1.2.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	mail www
11
CATEGORIES=	mail www
12
MASTER_SITES=	http://pear.php.net/get/
13
PKGNAMEPREFIX=	pear-
14
EXTRACT_SUFX=	.tgz
15
DIST_SUBDIR=	PEAR
16
12
17
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	PEAR classes to create and decode MIME messages
14
COMMENT=	PEAR classes to create and decode MIME messages
19
15
20
BUILD_DEPENDS=	${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
16
BUILD_DEPENDS=	${PEARDIR}/Mail/mail.php:${PORTSDIR}/mail/pear-Mail
21
RUN_DEPENDS=	${PEARDIR}.DIST_PHP:${PORTSDIR}/devel/pear-install
17
RUN_DEPENDS=	${BUILD_DEPENDS}
22
23
NO_BUILD=	yes
24
18
25
.include <bsd.port.pre.mk>
19
.include <bsd.port.pre.mk>
26
20
.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
27
.if exists(${LOCALBASE}/bin/php-config)
28
PHP_BASE!=	${LOCALBASE}/bin/php-config --prefix
29
.else
30
PHP_BASE=	${LOCALBASE}
31
.endif
32
PEAR=		${LOCALBASE}/bin/pear
33
LPHP_LIB=	lib/php
34
PEARDIR=	${PHP_BASE}/${LPHP_LIB}
35
PLIST_SUB=	PEARDIR=${LPHP_LIB}
36
21
37
do-install:
22
do-install:
38
	@${CP} -Rp ${WRKSRC}/* ${PEARDIR}/Mail
23
	@${CP} -Rp ${WRKSRC}/* ${PEARDIR}/Mail
Lines 40-48 Link Here
40
.for BUGMODE in mimeDecode.php mimePart.php xmail.dtd xmail.xsl
25
.for BUGMODE in mimeDecode.php mimePart.php xmail.dtd xmail.xsl
41
	@${CHMOD} a-x ${PEARDIR}/Mail/${BUGMODE}
26
	@${CHMOD} a-x ${PEARDIR}/Mail/${BUGMODE}
42
.endfor
27
.endfor
43
44
post-install:
45
# Register a new package
46
	@${PEAR} install -r -f ${WRKDIR}/package.xml
47
28
48
.include <bsd.port.post.mk>
29
.include <bsd.port.post.mk>
(-)mail/pear-Mail_Mime/pkg-deinstall (-13 lines)
Lines 1-13 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/pear-Mail_Mime/pkg-deinstall,v 1.1 2003/02/24 05:27:41 edwin Exp $
4
#
5
# Remove package declaration from PEAR's registry.
6
7
if [ x$2 != xDEINSTALL ]; then
8
    exit
9
fi
10
PKG_NAME=${1%%-[0-9._]*}
11
PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
12
13
${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
(-)mail/pear-Mail_Mime/pkg-install (+14 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# Register the package $1 in the port registry
6
7
PREFIX=${PKG_PREFIX:-/usr/local}
8
PEAR=${PREFIX}/bin/pear
9
PKGREGDIR=${PREFIX}/.PEAR.pkg/$1
10
11
[ "x$1" = "x" ] && exit 1
12
if [ "x$2" = "xPOST-INSTALL" ]; then
13
	${PEAR} install -r -f ${PKGREGDIR}/package.xml
14
fi

Return to bug 52641