openbsd-ports/www/pear/Makefile.pear
sthen 31654e1851 Switch pear to a newer version. We previously used a tarball with a slightly
modified version of the go-pear php script but this was awkward to generate
and newer versions no longer support recent PHP. So instead I have changed
to using an unmodified go-pear.phar archive (mirrored to include a version
number, but there are no changes to the upstream file).

go-pear.phar is normally interactive and doesn't allow presetting parameters
or just piping a simple list of answers, so I am driving it with Expect.pm
instead.

Some bumps/updates to follow as XML-Util moved to the main pear distro.

ok robert@
2016-04-01 18:46:06 +00:00

15 lines
499 B
Makefile

# $OpenBSD: Makefile.pear,v 1.4 2016/04/01 18:46:06 sthen Exp $
# Default Makefile to install a PHP PEAR module
default:
install:
cp ${WRKDIR}/package.xml ${.CURDIR}
mkdir -p ${PREFIX}/lib/php
env PHP_PEAR_METADATA_DIR=/var/www/pear/lib ${LOCALBASE}/bin/pear \
install -f -n -R ${WRKINST} -n ${.CURDIR}/package.xml
# These directories and files are not needed
@cd ${WRKINST}/var/www/pear && rm -rf cache lib/.channels lib/.channels/__uri.reg \
lib/.depdb* lib/.registry/.channel*