diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-28 13:54:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-28 18:38:20 +0200 |
commit | 4272e802a1be191657becb739e6a248c1d0411a7 (patch) | |
tree | a07a25b7c99d7da326957a88173ba49583cf6b2a /main/php5-pear-mdb2/APKBUILD | |
parent | 3e272105092cd9804a5a022a188db929ebf440da (diff) | |
download | aports-4272e802a1be191657becb739e6a248c1d0411a7.tar.bz2 aports-4272e802a1be191657becb739e6a248c1d0411a7.tar.xz |
community/*: move php5 and dependent pkgs from main
There two main reasons for this change:
* Active support of PHP 5.x ended on January 2017, security support will
end on December 2018. Packages in the main repository should be
supported for at least 2 years, this means until first quarter of 2019
for the upcoming v3.6.
* php7 and its extensions are currently in the community repository, so
we can't use single abuild for both php5-* and php7-* packages (as we
do for Python and Lua packages).
This change was suggested by @vakartel, approved by @ncopa, @kaniini, and
@jirutka.
Diffstat (limited to 'main/php5-pear-mdb2/APKBUILD')
-rw-r--r-- | main/php5-pear-mdb2/APKBUILD | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/main/php5-pear-mdb2/APKBUILD b/main/php5-pear-mdb2/APKBUILD deleted file mode 100644 index 895eebe05a..0000000000 --- a/main/php5-pear-mdb2/APKBUILD +++ /dev/null @@ -1,66 +0,0 @@ -# Contributor: Matt Smith <mcs@darkregion.net> -# Maintainer: Leonardo Arena <rnalrd@gmail.com> -_php=php5 -pkgname=${_php}-pear-mdb2 -_pkgname=MDB2 -pkgver=2.5.0b5 -_driver_ver=1.5.0b4 -pkgrel=0 -pkgdesc="PEAR MDB2 Database Abstraction Layer" -url="http://pear.php.net/package/MDB2/" -arch="noarch" -license="BSD" -depends="${_php}-pear" -depends_dev= -makedepends="$depends_dev ${_php}-pear" -install="" -subpackages=" - $pkgname-driver-mysql:driver_mysql - $pkgname-driver-mysqli:driver_mysqli - $pkgname-driver-pgsql:driver_pgsql - $pkgname-driver-sqlite:driver_sqlite - " -source="" - -build() { return 0; } -package() { _pear_install $_pkgname-$pkgver "$pkgdir" || return 1; } -driver_mysql() { _do_driver mysql "mysql ${_php}-mysql" ; } -driver_mysqli() { _do_driver mysqli "mysql ${_php}-mysqli" ; } -driver_pgsql() { _do_driver pgsql "postgresql ${_php}-pgsql" ; } -driver_sqlite() { _do_driver sqlite "${_php}-sqlite3" ; } - - -_pear_install() { - local _pear_pkg=$1 - local _pear_pkg_dir=$2 - - pear install --nodeps --packagingroot="$_pear_pkg_dir" $_pear_pkg \ - || return 1 - - _cleanpaths=" - usr/share/pear/.channels/ - usr/share/pear/.depdb - usr/share/pear/.depdblock - usr/share/pear/.filemap - usr/share/pear/.lock - usr/share/pear/.registry/.channel.__uri/ - usr/share/pear/.registry/.channel.doc.php.net/ - usr/share/pear/.registry/.channel.pecl.php.net/ - " - for _cleanpath in $_cleanpaths; do - rm -rf "$_pear_pkg_dir"/$_cleanpath || return 1 - done -} - -_do_driver() { - local _driver_name=$1 - - # driver dependencies - if [ -n "${2-}" ]; then - depends="${2-}" - fi - depends="${pkgname} ${depends}" - - _pear_install ${_pkgname}_Driver_${_driver_name}-${_driver_ver} \ - "$subpkgdir" || return 1 -} |