aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Leise <marco.leise@gmx.de>2017-09-28 22:10:22 +0200
committerMarco Leise <marco.leise@gmx.de>2017-09-28 22:10:22 +0200
commit3f2bfce97e2952d0e54df0525477a864df71ccd2 (patch)
tree3c14f677ed3ef2650d169f47e2d7fb0a63a8796c /eclass/dmd.eclass
parentFix gcc-4.9.4 compilation by copying the files directory from the portage tre... (diff)
downloaddlang-3f2bfce97e2952d0e54df0525477a864df71ccd2.tar.gz
dlang-3f2bfce97e2952d0e54df0525477a864df71ccd2.tar.bz2
dlang-3f2bfce97e2952d0e54df0525477a864df71ccd2.zip
Fix for https://bugs.gentoo.org/630164
Diffstat (limited to 'eclass/dmd.eclass')
-rw-r--r--eclass/dmd.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/dmd.eclass b/eclass/dmd.eclass
index 4da704e..7095221 100644
--- a/eclass/dmd.eclass
+++ b/eclass/dmd.eclass
@@ -30,7 +30,7 @@ MAJOR="$(get_major_version)"
MINOR="$((10#$(get_version_component_range 2)))"
PATCH="$(get_version_component_range 3)"
VERSION="$(get_version_component_range 1-3)"
-BETA="$(echo $(get_version_component_range 4) | cut -c 5-)"
+BETA="$(get_version_component_range 4)"
if [ "${KERNEL}" != "FreeBSD" ]; then
ARCHIVE="${ARCHIVE-linux.tar.xz}"
elif [ "${ARCH}" == "x86" ]; then
@@ -70,7 +70,7 @@ fi
EXPORT_FUNCTIONS src_prepare src_compile src_test src_install pkg_postinst pkg_postrm
if [[ -n "${BETA}" ]]; then
- SRC_URI="http://downloads.dlang.org/pre-releases/${MAJOR}.x/${VERSION}/${PN}.${VERSION}-b${BETA}.${ARCHIVE}"
+ SRC_URI="http://downloads.dlang.org/pre-releases/${MAJOR}.x/${VERSION}/${PN}.${VERSION}-b${BETA:4}.${ARCHIVE}"
else
SRC_URI="mirror://aws/${YEAR}/${PN}.${PV}.${ARCHIVE}"
fi