How to create a port with uncompressed distfile?

Darren Pilgrim list_freebsd at bluerosetech.com
Thu Nov 27 18:37:29 UTC 2014


On 11/27/2014 4:41 AM, Torsten Zuehlsdorff wrote:
> 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?

Add "STRIP=" as a line after the NO_BUILD line, then in the do-install 
target:

${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX} \
         ${STAGEDIR}${PREFIX}/bin/phpunit

The stage dir is created for you.


More information about the freebsd-ports mailing list