Lines 227-242
Link Here
|
227 |
} |
227 |
} |
228 |
|
228 |
|
229 |
php5_2-sapi_set_php_ini_dir() { |
229 |
php5_2-sapi_set_php_ini_dir() { |
230 |
PHP_INI_DIR="/etc/php/${PHPSAPI}-php5" |
230 |
PHP_INI_DIR="${EPREFIX}/etc/php/${PHPSAPI}-php5" |
231 |
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" |
231 |
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext" |
232 |
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" |
232 |
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active" |
233 |
} |
233 |
} |
234 |
|
234 |
|
235 |
php5_2-sapi_install_ini() { |
235 |
php5_2-sapi_install_ini() { |
236 |
destdir=/usr/$(get_libdir)/php5 |
236 |
destdir="${EPREFIX}"/usr/$(get_libdir)/php5 |
237 |
|
237 |
|
238 |
# get the extension dir, if not already defined |
238 |
# get the extension dir, if not already defined |
239 |
[[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${ED}/${destdir}/bin/php-config" --extension-dir`" |
239 |
[[ -z "${PHPEXTDIR}" ]] && PHPEXTDIR="`"${D}/${destdir}/bin/php-config" --extension-dir`" |
240 |
|
240 |
|
241 |
# work out where we are installing the ini file |
241 |
# work out where we are installing the ini file |
242 |
php5_2-sapi_set_php_ini_dir |
242 |
php5_2-sapi_set_php_ini_dir |
Lines 254-260
Link Here
|
254 |
|
254 |
|
255 |
# Set the include path to point to where we want to find PEAR packages |
255 |
# Set the include path to point to where we want to find PEAR packages |
256 |
einfo "Setting correct include_path" |
256 |
einfo "Setting correct include_path" |
257 |
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:/usr/share/php5:/usr/share/php"|' -i ${phpinisrc} |
257 |
sed -e "s|^;include_path = ".:/php/includes".*|include_path = \".:${EPREFIX}/usr/share/php5:${EPREFIX}/usr/share/php\"|" -i ${phpinisrc} |
258 |
|
258 |
|
259 |
# Add needed MySQL extensions charset configuration |
259 |
# Add needed MySQL extensions charset configuration |
260 |
local phpmycnfcharset="" |
260 |
local phpmycnfcharset="" |
Lines 287-306
Link Here
|
287 |
echo ";pdo_mysql.connect_charset = utf8" >> ${phpinisrc} |
287 |
echo ";pdo_mysql.connect_charset = utf8" >> ${phpinisrc} |
288 |
fi |
288 |
fi |
289 |
|
289 |
|
290 |
dodir ${PHP_INI_DIR} |
290 |
dodir ${PHP_INI_DIR#${EPREFIX}} |
291 |
insinto ${PHP_INI_DIR} |
291 |
insinto ${PHP_INI_DIR#${EPREFIX}} |
292 |
newins ${phpinisrc} ${PHP_INI_FILE} |
292 |
newins ${phpinisrc} ${PHP_INI_FILE} |
293 |
|
293 |
|
294 |
dodir ${PHP_EXT_INI_DIR} |
294 |
dodir ${PHP_EXT_INI_DIR#${EPREFIX}} |
295 |
dodir ${PHP_EXT_INI_DIR_ACTIVE} |
295 |
dodir ${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}} |
296 |
|
296 |
|
297 |
# Install any extensions built as shared objects |
297 |
# Install any extensions built as shared objects |
298 |
if use sharedext ; then |
298 |
if use sharedext ; then |
299 |
for x in `ls "${ED}/${PHPEXTDIR}/"*.so | sort` ; do |
299 |
for x in `ls "${D}/${PHPEXTDIR}/"*.so | sort` ; do |
300 |
inifilename=${x/.so/.ini} |
300 |
inifilename=${x/.so/.ini} |
301 |
inifilename=`basename ${inifilename}` |
301 |
inifilename=`basename ${inifilename}` |
302 |
echo "extension=`basename ${x}`" >> "${ED}/${PHP_EXT_INI_DIR}/${inifilename}" |
302 |
echo "extension=`basename ${x}`" >> "${D}/${PHP_EXT_INI_DIR}/${inifilename}" |
303 |
dosym "${PHP_EXT_INI_DIR}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE}/${inifilename}" |
303 |
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/${inifilename}" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/${inifilename}" |
304 |
done |
304 |
done |
305 |
fi |
305 |
fi |
306 |
} |
306 |
} |
Lines 389-396
Link Here
|
389 |
# Fix configure scripts to correctly support Suhosin |
389 |
# Fix configure scripts to correctly support Suhosin |
390 |
einfo "Running aclocal" |
390 |
einfo "Running aclocal" |
391 |
aclocal --force || die "Unable to run aclocal successfully" |
391 |
aclocal --force || die "Unable to run aclocal successfully" |
|
|
392 |
# Prefixed portage seems not to find libtoolize here, since it is glibtoolize |
392 |
einfo "Running libtoolize" |
393 |
einfo "Running libtoolize" |
393 |
libtoolize --copy --force || die "Unable to run libtoolize successfully" |
394 |
libtoolize --copy --force || |
|
|
395 |
glibtoolize --copy --force || |
396 |
die "Unable to run libtoolize successfully" |
394 |
|
397 |
|
395 |
# Rebuild configure to make sure it's up to date |
398 |
# Rebuild configure to make sure it's up to date |
396 |
einfo "Rebuilding configure script" |
399 |
einfo "Rebuilding configure script" |
Lines 408-414
Link Here
|
408 |
# Takes care of compiling php according to USE flags set by user (and those automagically |
411 |
# Takes care of compiling php according to USE flags set by user (and those automagically |
409 |
# enabled via phpconfutils eclass if unavoidable). |
412 |
# enabled via phpconfutils eclass if unavoidable). |
410 |
php5_2-sapi_src_compile() { |
413 |
php5_2-sapi_src_compile() { |
411 |
destdir=/usr/$(get_libdir)/php5 |
414 |
destdir="${EPREFIX}"/usr/$(get_libdir)/php5 |
412 |
|
415 |
|
413 |
php5_2-sapi_set_php_ini_dir |
416 |
php5_2-sapi_set_php_ini_dir |
414 |
|
417 |
|
Lines 420-429
Link Here
|
420 |
|
423 |
|
421 |
# extension USE flag shared support? |
424 |
# extension USE flag shared support? |
422 |
phpconfutils_extension_enable "bcmath" "bcmath" 1 |
425 |
phpconfutils_extension_enable "bcmath" "bcmath" 1 |
423 |
phpconfutils_extension_with "bz2" "bzip2" 1 |
426 |
phpconfutils_extension_with "bz2" "bzip2" 1 "${EPREFIX}/usr" |
424 |
phpconfutils_extension_enable "calendar" "calendar" 1 |
427 |
phpconfutils_extension_enable "calendar" "calendar" 1 |
425 |
phpconfutils_extension_disable "ctype" "ctype" 0 |
428 |
phpconfutils_extension_disable "ctype" "ctype" 0 |
426 |
phpconfutils_extension_with "curl" "curl" 1 |
429 |
phpconfutils_extension_with "curl" "curl" 1 "${EPREFIX}/usr" |
427 |
phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 |
430 |
phpconfutils_extension_with "curlwrappers" "curlwrappers" 0 |
428 |
phpconfutils_extension_enable "dbase" "dbase" 1 |
431 |
phpconfutils_extension_enable "dbase" "dbase" 1 |
429 |
phpconfutils_extension_disable "dom" "xml" 0 |
432 |
phpconfutils_extension_disable "dom" "xml" 0 |
Lines 433-464
Link Here
|
433 |
phpconfutils_extension_disable "filter" "filter" 0 |
436 |
phpconfutils_extension_disable "filter" "filter" 0 |
434 |
phpconfutils_extension_enable "ftp" "ftp" 1 |
437 |
phpconfutils_extension_enable "ftp" "ftp" 1 |
435 |
phpconfutils_extension_with "gettext" "nls" 1 |
438 |
phpconfutils_extension_with "gettext" "nls" 1 |
436 |
phpconfutils_extension_with "gmp" "gmp" 1 |
439 |
phpconfutils_extension_with "gmp" "gmp" 1 "${EPREFIX}/usr" |
437 |
phpconfutils_extension_disable "hash" "hash" 0 |
440 |
phpconfutils_extension_disable "hash" "hash" 0 |
438 |
phpconfutils_extension_without "iconv" "iconv" 0 |
441 |
phpconfutils_extension_without "iconv" "iconv" 0 |
439 |
phpconfutils_extension_disable "ipv6" "ipv6" 0 |
442 |
phpconfutils_extension_disable "ipv6" "ipv6" 0 |
440 |
phpconfutils_extension_disable "json" "json" 0 |
443 |
phpconfutils_extension_disable "json" "json" 0 |
441 |
phpconfutils_extension_with "kerberos" "kerberos" 0 "/usr" |
444 |
phpconfutils_extension_with "kerberos" "kerberos" 0 "${EPREFIX}/usr" |
442 |
phpconfutils_extension_disable "libxml" "xml" 0 |
445 |
phpconfutils_extension_disable "libxml" "xml" 0 |
443 |
phpconfutils_extension_enable "mbstring" "unicode" 1 |
446 |
phpconfutils_extension_enable "mbstring" "unicode" 1 |
444 |
phpconfutils_extension_with "mcrypt" "crypt" 1 |
447 |
phpconfutils_extension_with "mcrypt" "crypt" 1 "${EPREFIX}/usr" |
445 |
phpconfutils_extension_with "mhash" "mhash" 1 |
448 |
phpconfutils_extension_with "mhash" "mhash" 1 |
446 |
phpconfutils_extension_with "msql" "msql" 1 |
449 |
phpconfutils_extension_with "msql" "msql" 1 |
447 |
phpconfutils_extension_with "mssql" "mssql" 1 |
450 |
phpconfutils_extension_with "mssql" "mssql" 1 |
448 |
phpconfutils_extension_with "ncurses" "ncurses" 1 |
451 |
phpconfutils_extension_with "ncurses" "ncurses" 1 "${EPREFIX}/usr" |
449 |
phpconfutils_extension_with "openssl" "ssl" 0 |
452 |
phpconfutils_extension_with "openssl" "ssl" 0 |
450 |
phpconfutils_extension_with "openssl-dir" "ssl" 0 "/usr" |
453 |
phpconfutils_extension_with "openssl-dir" "ssl" 0 "${EPREFIX}/usr" |
451 |
phpconfutils_extension_enable "pcntl" "pcntl" 1 |
454 |
phpconfutils_extension_enable "pcntl" "pcntl" 1 |
452 |
phpconfutils_extension_without "pcre-regex" "pcre" 0 |
455 |
phpconfutils_extension_without "pcre-regex" "pcre" 0 |
453 |
phpconfutils_extension_disable "pdo" "pdo" 0 |
456 |
phpconfutils_extension_disable "pdo" "pdo" 0 |
454 |
phpconfutils_extension_with "pgsql" "postgres" 1 |
457 |
phpconfutils_extension_with "pgsql" "postgres" 1 "${EPREFIX}/usr" |
455 |
phpconfutils_extension_disable "posix" "posix" 0 |
458 |
phpconfutils_extension_disable "posix" "posix" 0 |
456 |
phpconfutils_extension_with "pspell" "spell" 1 |
459 |
phpconfutils_extension_with "pspell" "spell" 1 "${EPREFIX}/usr" |
457 |
phpconfutils_extension_with "recode" "recode" 1 |
460 |
phpconfutils_extension_with "recode" "recode" 1 "${EPREFIX}/usr" |
458 |
phpconfutils_extension_disable "reflection" "reflection" 0 |
461 |
phpconfutils_extension_disable "reflection" "reflection" 0 |
459 |
phpconfutils_extension_disable "simplexml" "simplexml" 0 |
462 |
phpconfutils_extension_disable "simplexml" "simplexml" 0 |
460 |
phpconfutils_extension_enable "shmop" "sharedmem" 0 |
463 |
phpconfutils_extension_enable "shmop" "sharedmem" 0 |
461 |
phpconfutils_extension_with "snmp" "snmp" 1 |
464 |
phpconfutils_extension_with "snmp" "snmp" 1 "${EPREFIX}/usr" |
462 |
phpconfutils_extension_enable "soap" "soap" 1 |
465 |
phpconfutils_extension_enable "soap" "soap" 1 |
463 |
phpconfutils_extension_enable "sockets" "sockets" 1 |
466 |
phpconfutils_extension_enable "sockets" "sockets" 1 |
464 |
phpconfutils_extension_disable "spl" "spl" 0 |
467 |
phpconfutils_extension_disable "spl" "spl" 0 |
Lines 467-482
Link Here
|
467 |
phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 |
470 |
phpconfutils_extension_enable "sysvmsg" "sysvipc" 1 |
468 |
phpconfutils_extension_enable "sysvsem" "sysvipc" 1 |
471 |
phpconfutils_extension_enable "sysvsem" "sysvipc" 1 |
469 |
phpconfutils_extension_enable "sysvshm" "sysvipc" 1 |
472 |
phpconfutils_extension_enable "sysvshm" "sysvipc" 1 |
470 |
phpconfutils_extension_with "tidy" "tidy" 1 |
473 |
phpconfutils_extension_with "tidy" "tidy" 1 "${EPREFIX}/usr" |
471 |
phpconfutils_extension_disable "tokenizer" "tokenizer" 0 |
474 |
phpconfutils_extension_disable "tokenizer" "tokenizer" 0 |
472 |
phpconfutils_extension_enable "wddx" "wddx" 1 |
475 |
phpconfutils_extension_enable "wddx" "wddx" 1 |
473 |
phpconfutils_extension_disable "xml" "xml" 0 |
476 |
phpconfutils_extension_disable "xml" "xml" 0 |
474 |
phpconfutils_extension_disable "xmlreader" "xmlreader" 0 |
477 |
phpconfutils_extension_disable "xmlreader" "xmlreader" 0 |
475 |
phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 |
478 |
phpconfutils_extension_disable "xmlwriter" "xmlwriter" 0 |
476 |
phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 |
479 |
phpconfutils_extension_with "xmlrpc" "xmlrpc" 1 |
477 |
phpconfutils_extension_with "xsl" "xsl" 1 |
480 |
phpconfutils_extension_with "xsl" "xsl" 1 "${EPREFIX}/usr" |
478 |
phpconfutils_extension_enable "zip" "zip" 1 |
481 |
phpconfutils_extension_enable "zip" "zip" 1 |
479 |
phpconfutils_extension_with "zlib" "zlib" 1 |
482 |
phpconfutils_extension_with "zlib" "zlib" 1 "${EPREFIX}/usr" |
480 |
phpconfutils_extension_enable "debug" "debug" 0 |
483 |
phpconfutils_extension_enable "debug" "debug" 0 |
481 |
|
484 |
|
482 |
# DBA support |
485 |
# DBA support |
Lines 491-517
Link Here
|
491 |
|
494 |
|
492 |
# DBA drivers support |
495 |
# DBA drivers support |
493 |
phpconfutils_extension_with "cdb" "cdb" 0 |
496 |
phpconfutils_extension_with "cdb" "cdb" 0 |
494 |
phpconfutils_extension_with "db4" "berkdb" 0 |
497 |
phpconfutils_extension_with "db4" "berkdb" 0 "${EPREFIX}/usr" |
495 |
phpconfutils_extension_with "flatfile" "flatfile" 0 |
498 |
phpconfutils_extension_with "flatfile" "flatfile" 0 |
496 |
phpconfutils_extension_with "gdbm" "gdbm" 0 |
499 |
phpconfutils_extension_with "gdbm" "gdbm" 0 "${EPREFIX}/usr" |
497 |
phpconfutils_extension_with "inifile" "inifile" 0 |
500 |
phpconfutils_extension_with "inifile" "inifile" 0 |
498 |
phpconfutils_extension_with "qdbm" "qdbm" 0 |
501 |
phpconfutils_extension_with "qdbm" "qdbm" 0 "${EPREFIX}/usr" |
499 |
|
502 |
|
500 |
# Support for the GD graphics library |
503 |
# Support for the GD graphics library |
501 |
if use gd-external || phpconfutils_usecheck gd-external ; then |
504 |
if use gd-external || phpconfutils_usecheck gd-external ; then |
502 |
phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" |
505 |
phpconfutils_extension_with "freetype-dir" "truetype" 0 "${EPREFIX}/usr" |
503 |
phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" |
506 |
phpconfutils_extension_with "t1lib" "truetype" 0 "${EPREFIX}/usr" |
504 |
phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 |
507 |
phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 |
505 |
phpconfutils_extension_with "gd" "gd-external" 1 "/usr" |
508 |
phpconfutils_extension_with "gd" "gd-external" 1 "${EPREFIX}/usr" |
506 |
else |
509 |
else |
507 |
phpconfutils_extension_with "freetype-dir" "truetype" 0 "/usr" |
510 |
phpconfutils_extension_with "freetype-dir" "truetype" 0 "${EPREFIX}/usr" |
508 |
phpconfutils_extension_with "t1lib" "truetype" 0 "/usr" |
511 |
phpconfutils_extension_with "t1lib" "truetype" 0 "${EPREFIX}/usr" |
509 |
phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 |
512 |
phpconfutils_extension_enable "gd-jis-conv" "cjk" 0 |
510 |
phpconfutils_extension_with "jpeg-dir" "gd" 0 "/usr" |
513 |
phpconfutils_extension_with "jpeg-dir" "gd" 0 "${EPREFIX}/usr" |
511 |
phpconfutils_extension_with "png-dir" "gd" 0 "/usr" |
514 |
phpconfutils_extension_with "png-dir" "gd" 0 "${EPREFIX}/usr" |
512 |
phpconfutils_extension_with "xpm-dir" "xpm" 0 "/usr" |
515 |
phpconfutils_extension_with "xpm-dir" "xpm" 0 "${EPREFIX}/usr" |
513 |
# enable gd last, so configure can pick up the previous settings |
516 |
# enable gd last, so configure can pick up the previous settings |
514 |
phpconfutils_extension_with "gd" "gd" 0 |
517 |
phpconfutils_extension_with "gd" "gd" 0 "${EPREFIX}/usr" |
515 |
fi |
518 |
fi |
516 |
|
519 |
|
517 |
# IMAP support |
520 |
# IMAP support |
Lines 530-536
Link Here
|
530 |
if has_version "<dev-db/firebird-2.0.3.12981.0-r1" ; then |
533 |
if has_version "<dev-db/firebird-2.0.3.12981.0-r1" ; then |
531 |
my_conf="${my_conf} --with-interbase=/opt" |
534 |
my_conf="${my_conf} --with-interbase=/opt" |
532 |
else |
535 |
else |
533 |
my_conf="${my_conf} --with-interbase=/usr" |
536 |
my_conf="${my_conf} --with-interbase=${EPREFIX}/usr" |
534 |
fi |
537 |
fi |
535 |
fi |
538 |
fi |
536 |
|
539 |
|
Lines 546-561
Link Here
|
546 |
|
549 |
|
547 |
# MySQL support |
550 |
# MySQL support |
548 |
if use mysql ; then |
551 |
if use mysql ; then |
549 |
phpconfutils_extension_with "mysql" "mysql" 1 "/usr" |
552 |
phpconfutils_extension_with "mysql" "mysql" 1 "${EPREFIX}/usr" |
550 |
phpconfutils_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" |
553 |
phpconfutils_extension_with "mysql-sock" "mysql" 0 "${EPREFIX}/var/run/mysqld/mysqld.sock" |
551 |
fi |
554 |
fi |
552 |
|
555 |
|
553 |
# MySQLi support |
556 |
# MySQLi support |
554 |
phpconfutils_extension_with "mysqli" "mysqli" 1 "/usr/bin/mysql_config" |
557 |
phpconfutils_extension_with "mysqli" "mysqli" 1 "${EPREFIX}/usr/bin/mysql_config" |
555 |
|
558 |
|
556 |
# ODBC support |
559 |
# ODBC support |
557 |
if use odbc || phpconfutils_usecheck odbc ; then |
560 |
if use odbc || phpconfutils_usecheck odbc ; then |
558 |
phpconfutils_extension_with "unixODBC" "odbc" 1 "/usr" |
561 |
phpconfutils_extension_with "unixODBC" "odbc" 1 "${EPREFIX}/usr" |
559 |
|
562 |
|
560 |
phpconfutils_extension_with "adabas" "adabas" 1 |
563 |
phpconfutils_extension_with "adabas" "adabas" 1 |
561 |
phpconfutils_extension_with "birdstep" "birdstep" 1 |
564 |
phpconfutils_extension_with "birdstep" "birdstep" 1 |
Lines 595-609
Link Here
|
595 |
OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`" |
598 |
OCI8IC_PKG="`printf ${OCI8IC_PKG} | sed -e 's|dev-db/oracle-instantclient-basic-||g' | sed -e 's|-r.*||g'`" |
596 |
phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 "instantclient,/usr,${OCI8IC_PKG}" |
599 |
phpconfutils_extension_with "pdo-oci" "oci8-instant-client" 1 "instantclient,/usr,${OCI8IC_PKG}" |
597 |
fi |
600 |
fi |
598 |
phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,/usr" |
601 |
phpconfutils_extension_with "pdo-odbc" "odbc" 1 "unixODBC,${EPREFIX}/usr" |
599 |
phpconfutils_extension_with "pdo-pgsql" "postgres" 1 |
602 |
phpconfutils_extension_with "pdo-pgsql" "postgres" 1 "${EPREFIX}/usr" |
600 |
phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "/usr" |
603 |
phpconfutils_extension_with "pdo-sqlite" "sqlite" 1 "${EPREFIX}/usr" |
601 |
fi |
604 |
fi |
602 |
|
605 |
|
603 |
# readline/libedit support |
606 |
# readline/libedit support |
604 |
# You can use readline or libedit, but you can't use both |
607 |
# You can use readline or libedit, but you can't use both |
605 |
phpconfutils_extension_with "readline" "readline" 0 |
608 |
phpconfutils_extension_with "readline" "readline" 0 "${EPREFIX}/usr" |
606 |
phpconfutils_extension_with "libedit" "libedit" 0 |
609 |
phpconfutils_extension_with "libedit" "libedit" 0 |
607 |
|
610 |
|
608 |
# Session support |
611 |
# Session support |
609 |
if ! use session && ! phpconfutils_usecheck session ; then |
612 |
if ! use session && ! phpconfutils_usecheck session ; then |
Lines 641-647
Link Here
|
641 |
tc-export CC |
644 |
tc-export CC |
642 |
|
645 |
|
643 |
# We don't use econf, because we need to override all of its settings |
646 |
# We don't use econf, because we need to override all of its settings |
644 |
./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed" |
647 |
./configure --prefix=${destdir} --host=${CHOST} --mandir=${destdir}/man --infodir=${destdir}/info --sysconfdir=${EPREFIX}/etc --cache-file=./config.cache ${my_conf} ${EXTRA_ECONF} || die "configure failed" |
645 |
emake || die "make failed" |
648 |
emake || die "make failed" |
646 |
} |
649 |
} |
647 |
|
650 |
|
Lines 688-694
Link Here
|
688 |
for x in `ls "${S}/modules/"*.so | sort` ; do |
691 |
for x in `ls "${S}/modules/"*.so | sort` ; do |
689 |
module=`basename ${x}` |
692 |
module=`basename ${x}` |
690 |
modulename=${module/.so/} |
693 |
modulename=${module/.so/} |
691 |
insinto "${PHPEXTDIR}" |
694 |
insinto "${PHPEXTDIR#${EPREFIX}}" |
692 |
einfo "Installing PHP ${modulename} extension" |
695 |
einfo "Installing PHP ${modulename} extension" |
693 |
doins "modules/${module}" |
696 |
doins "modules/${module}" |
694 |
done |
697 |
done |