diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2019-11-22 13:02:54 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2019-11-22 13:03:28 +0100 |
commit | 4278685f5e478d0b89859deaa2dcca88780c797e (patch) | |
tree | b1487941997b57fc100280aeaa68a86c077da422 /dev-lang/gnat-gpl | |
parent | app-laptop/hdaps-gl: [QA] expand HOMAPAGE in SRC_URI (diff) | |
download | gentoo-4278685f5e478d0b89859deaa2dcca88780c797e.tar.gz gentoo-4278685f5e478d0b89859deaa2dcca88780c797e.tar.bz2 gentoo-4278685f5e478d0b89859deaa2dcca88780c797e.zip |
dev-lang/gnat-gpl: put a guards against tool renaming made twice
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-lang/gnat-gpl')
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild | 11 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild | 11 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild | 11 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild | 11 |
4 files changed, 24 insertions, 20 deletions
diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild index 2cbd328b4488..290798ee35e7 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild @@ -172,6 +172,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -183,11 +186,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild index 0ea6d3ee0762..8d63c01d4ee4 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild @@ -154,6 +154,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -165,11 +168,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild index 00f3295d1cee..1e8dadcdd4d9 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild @@ -154,6 +154,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -165,11 +168,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} diff --git a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild index fe915188aa11..ec50a7c0fb56 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild @@ -153,6 +153,9 @@ src_compile() { src_install() { toolchain_src_install cd "${D}"${BINPATH} + if [[ -h gnatmake-${GCC_CONFIG_VER} ]] ; then + return + fi for x in gnat*; do # For some reason, g77 gets made instead of ${CTARGET}-g77... # this should take care of that @@ -164,11 +167,9 @@ src_install() { fi if [[ -f ${CTARGET}-${x} ]] ; then - if ! is_crosscompile ; then - ln -sf ${CTARGET}-${x} ${x} - dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ - /usr/bin/${x}-${GCC_CONFIG_VER} - fi + ln -sf ${CTARGET}-${x} ${x} + dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ + /usr/bin/${x}-${GCC_CONFIG_VER} # Create versioned symlinks dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ /usr/bin/${CTARGET}-${x}-${GCC_CONFIG_VER} |