How to create a port with uncompressed distfile?

Torsten Zuehlsdorff mailinglists at toco-domains.de
Thu Nov 27 12:41:20 UTC 2014


Hello,

i'm nearly done with the new port. But i have a last problem.

In short the installation procedure:
- downloading the .phar file
- copying the .phar file into stagedir (because its the complete programm)
- renaming the file from "phpunit-$version.phar" to "phpunit" (without 
suffix)
- setting +x rights to "phpunit"

The last one i did not get right. I believe i have to use 
${INSTALL_PROGRAM} but i make something wrong. Can somebody help?

I've attached the current progress.

Thank you very much,
Torsten
-------------- next part --------------
# Created by: Torsten Zühlsdorff (<ports at toco-domains.de>)
# $FreeBSD$

PORTNAME=	PHPUnit
PORTVERSION=	4.3.5
CATEGORIES=	devel www
MASTER_SITES=	https://phar.phpunit.de/ \
						 http://ports.toco-domains.de/
DISTNAME=phpunit-${PORTVERSION}
EXTRACT_SUFX=.phar
EXTRACT_ONLY=	#none

MAINTAINER=	ports at toco-domains.de
COMMENT=	Testing framework for unit tests

LICENSE=	BSD4CLAUSE

CONFLICTS=	pear-PHPUnit-[123]*

USE_PHP=	dom json spl pcre

NO_BUILD=	yes

PLIST_FILES=	bin/phpunit

WRKSRC=		${DISTDIR}

do-install:
	${MKDIR} ${STAGEDIR}
	(cd ${WRKSRC} && ${CP} ${DISTNAME}${EXTRACT_SUFX} ${STAGEDIR}${PREFIX}/bin/phpunit)

.include <bsd.port.mk>
-------------- next part --------------
SHA256 (phpunit-4.3.5.phar) = 993942147f1b79bfb4a006fb24b1d9f5542f11adefd4b0e01ac553759f911d40
SIZE (phpunit-4.3.5.phar) = 3328017
-------------- next part --------------
PHPUnit is a regression testing framework used by the developer
who implements unit tests in PHP. It is based upon JUnit, which
can be found at http://www.junit.org/.

WWW: http://www.phpunit.de


More information about the freebsd-ports mailing list