Skip to content

Commit

Permalink
dev-lang/php: Use relative symlinks; whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Evans <[email protected]>
  • Loading branch information
Brian Evans committed Mar 3, 2020
1 parent 254ca62 commit fed428c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions dev-lang/php/php-7.2.28-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -557,11 +557,11 @@ src_install() {
case "$sapi" in
cli)
source="sapi/cli/php"
# Install the "phar" archive utility.
if use phar ; then
emake INSTALL_ROOT="${D}" install-pharcmd
dosym "${dest}/bin/phar" "/usr/bin/phar${SLOT}"
fi
# Install the "phar" archive utility.
if use phar ; then
emake INSTALL_ROOT="${D}" install-pharcmd
dosym "..${dest#/usr}/bin/phar" "/usr/bin/phar${SLOT}"
fi
;;
cgi)
source="sapi/cgi/php-cgi"
Expand All @@ -585,7 +585,7 @@ src_install() {
else
dobin "${source}"
local name="$(basename ${source})"
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
dosym "..${dest#/usr}/bin/${name}" "/usr/bin/${name}${SLOT}"
fi
fi

Expand Down
12 changes: 6 additions & 6 deletions dev-lang/php/php-7.3.15-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,11 @@ src_install() {
case "$sapi" in
cli)
source="sapi/cli/php"
# Install the "phar" archive utility.
if use phar ; then
emake INSTALL_ROOT="${D}" install-pharcmd
dosym "${dest}/bin/phar" "/usr/bin/phar${SLOT}"
fi
# Install the "phar" archive utility.
if use phar ; then
emake INSTALL_ROOT="${D}" install-pharcmd
dosym "..${dest#/usr}/bin/phar" "/usr/bin/phar${SLOT}"
fi
;;
cgi)
source="sapi/cgi/php-cgi"
Expand All @@ -586,7 +586,7 @@ src_install() {
else
dobin "${source}"
local name="$(basename ${source})"
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
dosym "..${dest#/usr}/bin/${name}" "/usr/bin/${name}${SLOT}"
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions dev-lang/php/php-7.4.3-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ src_install() {
# Install the "phar" archive utility.
if use phar ; then
emake INSTALL_ROOT="${D}" install-pharcmd
dosym "${dest}/bin/phar" "/usr/bin/phar${SLOT}"
dosym "..${dest#/usr}/bin/phar" "/usr/bin/phar${SLOT}"
fi
;;
cgi)
Expand All @@ -576,7 +576,7 @@ src_install() {
else
dobin "${source}"
local name="$(basename ${source})"
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
dosym "..${dest#/usr}/bin/${name}" "/usr/bin/${name}${SLOT}"
fi
fi

Expand Down

0 comments on commit fed428c

Please sign in to comment.