diff options
author | 2019-11-22 13:02:54 +0100 | |
---|---|---|
committer | 2019-11-22 13:03:28 +0100 | |
commit | 4278685f5e478d0b89859deaa2dcca88780c797e (patch) | |
tree | b1487941997b57fc100280aeaa68a86c077da422 /dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild | |
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/gnat-gpl-2017-r1.ebuild')
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild | 11 |
1 files changed, 6 insertions, 5 deletions
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} |