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

(-)net/pear-Net_NNTP/Makefile (-26 / +5 lines)
Lines 15-46 Link Here
15
BUILD_DEPENDS=	${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket
15
BUILD_DEPENDS=	${PEARDIR}/Net/Socket.php:${PORTSDIR}/net/pear-Net_Socket
16
RUN_DEPENDS=	${BUILD_DEPENDS}
16
RUN_DEPENDS=	${BUILD_DEPENDS}
17
17
18
CATEGORY=	Net
19
FILES=		NNTP.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php
20
EXAMPLES=	README read.php group.php index.php
21
_EXAMPLESDIR=	examples/news.php.net
22
 
18
.include <bsd.port.pre.mk>
23
.include <bsd.port.pre.mk>
19
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
24
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
20
21
LIB_FILES=	NNTP/Realtime.php NNTP/Protocol.php NNTP/Header.php NNTP/Message.php
22
PORTDOCS=	README
23
24
.if defined(NOPORTEXAMPLES)
25
PLIST_SUB+=		PORTEXAMPLES="@comment "
26
.else
27
PLIST_SUB+=		PORTEXAMPLES=""
28
.endif
29
30
do-install:
31
	@${MKDIR} ${PEARDIR}/Net/NNTP
32
	@${CP} -p ${WRKSRC}/NNTP.php ${PEARDIR}/Net
33
.for FILE in ${LIB_FILES}
34
	@${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/Net/NNTP
35
.endfor
36
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/Net
37
.if !(NOPORTEXAMPLES)
38
	@${MKDIR} ${EXAMPLESDIR}
39
	@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/*.php ${EXAMPLESDIR}
40
.endif
41
.if !defined(NOPORTDOCS)
42
	@${MKDIR} ${DOCSDIR}
43
	@${INSTALL_DATA} ${WRKSRC}/examples/news.php.net/${PORTDOCS} ${DOCSDIR}
44
.endif
45
46
.include <bsd.port.post.mk>
25
.include <bsd.port.post.mk>
(-)net/pear-Net_NNTP/pkg-plist (-13 lines)
Lines 1-13 Link Here
1
%%PEARDIR%%/Net/NNTP.php
2
%%PEARDIR%%/Net/NNTP/Header.php
3
%%PEARDIR%%/Net/NNTP/Message.php
4
%%PEARDIR%%/Net/NNTP/Protocol.php
5
%%PEARDIR%%/Net/NNTP/Realtime.php
6
%%PKGREGDIR%%/package.xml
7
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/read.php
8
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/group.php
9
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/index.php
10
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
11
@dirrm %%PEARDIR%%/Net/NNTP
12
@dirrm %%PKGREGDIR%%
13
@unexec rmdir %D/share/pear/Net 2> /dev/null || true

Return to bug 65497