diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2012-02-02 05:56:33 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2012-02-02 05:56:33 +0800 |
commit | 01c5dfbfa2556f629b77b70cc910cfbe737e9e51 (patch) | |
tree | 8b1fc5c6a002dd9105fd240fd087571b872b3c68 /databases | |
parent | 424e1c77b46dec51a17d28b79765375dd0a0fc7c (diff) | |
download | freebsd-ports-gnome-01c5dfbfa2556f629b77b70cc910cfbe737e9e51.tar.gz freebsd-ports-gnome-01c5dfbfa2556f629b77b70cc910cfbe737e9e51.tar.zst freebsd-ports-gnome-01c5dfbfa2556f629b77b70cc910cfbe737e9e51.zip |
- Update COMMENT, add DEFAULT_PHP_VER and IGNORE_WITH_PHP: this port is for PHP 4 only
- Add LICENSE
- While I'm here:
- Remove PHP_MODNAME
- Respect PORTEXAMPLES
- Pet portlint
- Use PORTEXAMPLES instead of the two-line PLIST
PR: ports/152901
Submitted by: Tom Judge <tom@tomjudge.com>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/pecl-sqlite/Makefile | 35 | ||||
-rw-r--r-- | databases/pecl-sqlite/pkg-plist | 2 |
2 files changed, 18 insertions, 19 deletions
diff --git a/databases/pecl-sqlite/Makefile b/databases/pecl-sqlite/Makefile index 538e9f28b6d8..875e84b1530f 100644 --- a/databases/pecl-sqlite/Makefile +++ b/databases/pecl-sqlite/Makefile @@ -15,7 +15,9 @@ EXTRACT_SUFX= .tgz DIST_SUBDIR= PECL MAINTAINER= ports@FreeBSD.org -COMMENT= PECL classes to access sqlite databases +COMMENT= PECL classes to access sqlite databases in PHP 4 + +LICENSE= PHP30 WRKSRC= ${WRKDIR}/SQLite-${PORTVERSION} PKGMESSAGE= ${WRKDIR}/pkg-message @@ -23,33 +25,32 @@ PKGMESSAGE= ${WRKDIR}/pkg-message USE_PHP= yes USE_PHPIZE= yes USE_PHPEXT= yes -PHP_MODNAME= sqlite +DEFAULT_PHP_VER=4 +IGNORE_WITH_PHP=5 52 CONFIGURE_ARGS= --with-sqlite DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} -.include <bsd.port.pre.mk> - -.if ${PHP_VER} == 5 -IGNORE= Please use databases/php${PHP_VER}-sqlite -.endif - .if !defined(NOPORTDOCS) PORTDOCS= * .endif +.if !defined(NOPORTEXAMPLES) +PORTEXAMPLES= sqlite.php +.endif + post-install: .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${MKDIR} ${DOCSDIR}/tests - @${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/tests/* ${DOCSDIR}/tests - - @${MKDIR} ${EXAMPLESDIR} - @${INSTALL_DATA} ${WRKSRC}/sqlite.php ${EXAMPLESDIR} + ${MKDIR} ${DOCSDIR}/ ${DOCSDIR}/tests/ + ${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/tests/* ${DOCSDIR}/tests/ +.endif +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR}/ + ${INSTALL_DATA} ${WRKSRC}/sqlite.php ${EXAMPLESDIR}/ .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/databases/pecl-sqlite/pkg-plist b/databases/pecl-sqlite/pkg-plist deleted file mode 100644 index bdf8a480fb1c..000000000000 --- a/databases/pecl-sqlite/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -%%PORTDOCS%%%%EXAMPLESDIR%%/sqlite.php -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |