Skip to content

Instantly share code, notes, and snippets.

@tochiz
Created August 21, 2011 12:38
Show Gist options
  • Save tochiz/1160558 to your computer and use it in GitHub Desktop.
Save tochiz/1160558 to your computer and use it in GitHub Desktop.
eselect-php fix for prefix
--- app-admin/eselect-php/eselect-php-0.6.4.ebuild.orig 2011-02-28 21:34:04.000000000 +0900
+++ app-admin/eselect-php/eselect-php-0.6.4.ebuild 2011-08-21 20:48:02.000000000 +0900
@@ -19,6 +19,12 @@
src_install() {
mv eselect-php-${PV} php.eselect
+
+ # install to prefix usr/bin
+ sed -i -e 's/file \/usr\/bin/file "\${EPREFIX}"\/usr\/bin/' php.eselect || die
+ sed -i -e 's/php-cgi \/usr\/bin/php-cgi "\${EPREFIX}"\/usr\/bin/' php.eselect || die
+ sed -i -e 's/php-pfm \/usr\/bin/php-fpm "\${EPREFIX}"\/usr\/bin/' php.eselect || die
+
insinto /usr/share/eselect/modules/
doins php.eselect
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment