dmd: update to 2.071.0 (#4231)
This commit is contained in:
parent
0b1ed5fc8e
commit
27d8aad3bc
@ -1,14 +1,14 @@
|
||||
# Template file for 'dmd'
|
||||
pkgname=dmd
|
||||
version=2.066.0
|
||||
revision=2
|
||||
version=2.071.0
|
||||
revision=1
|
||||
wrksrc="dmd2"
|
||||
short_desc="The Digital Mars D compiler"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
homepage="http://www.digitalmars.com/d/2.0/"
|
||||
license="GPL-2"
|
||||
distfiles="http://ftp.digitalmars.com/dmd.${version}.zip"
|
||||
checksum=f13db9ed3bdc8740deb5903991e9e499fac708c8a1759050f1bfae624528df20
|
||||
distfiles="http://downloads.dlang.org/releases/2.x/${version}/dmd.${version}.linux.tar.xz"
|
||||
checksum=ed3723da1d7b91c490c4fff79161d9b071502cb6f3a6f57b7523bf234b51d527
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
_archbits=64
|
||||
@ -18,15 +18,15 @@ fi
|
||||
|
||||
only_for_archs="i686 x86_64"
|
||||
conf_files="/etc/dmd.conf"
|
||||
|
||||
hostmakedepends="unzip"
|
||||
nopie=yes
|
||||
hostmakedepends="curl"
|
||||
depends="libphobos>=${version} gcc"
|
||||
|
||||
do_build() {
|
||||
cd src
|
||||
|
||||
cd dmd
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits}
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits} AUTO_BOOTSTRAP=1
|
||||
|
||||
cd ../druntime
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits} DMD=../dmd/dmd
|
||||
@ -36,12 +36,12 @@ do_build() {
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall src/dmd/dmd 755 usr/bin
|
||||
vbin src/dmd/dmd
|
||||
vinstall ${FILESDIR}/dmd.conf 644 etc
|
||||
|
||||
vinstall man/man1/dmd.1 644 usr/share/man/man1
|
||||
vinstall man/man1/rdmd.1 644 usr/share/man/man1
|
||||
vinstall man/man5/dmd.conf.5 644 usr/share/man/man5
|
||||
vman man/man1/dmd.1
|
||||
vman man/man1/rdmd.1
|
||||
vman man/man5/dmd.conf.5
|
||||
|
||||
vmkdir usr/share/d/samples
|
||||
cp -r samples/d/* ${DESTDIR}/usr/share/d/samples/
|
||||
@ -49,7 +49,7 @@ do_install() {
|
||||
find ${DESTDIR}/usr/share/d/samples -type f | xargs chmod 0644
|
||||
|
||||
for f in ddemangle dman dumpobj obj2asm rdmd; do
|
||||
vinstall linux/bin${_archbits}/${f} 755 usr/bin
|
||||
vbin linux/bin${_archbits}/${f}
|
||||
done
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@ libphobos_package() {
|
||||
short_desc="The phobos D standard library for DMD"
|
||||
license="Boost License"
|
||||
pkg_install() {
|
||||
vinstall ${wrksrc}/src/druntime/lib/libdruntime-linux${_archbits}.a 644 usr/lib libdruntime.a
|
||||
vinstall ${wrksrc}/src/druntime/generated/linux/release/$_archbits/libdruntime.a 644 usr/lib libdruntime.a
|
||||
vinstall ${wrksrc}/src/phobos/generated/linux/release/$_archbits/libphobos2.a 644 usr/lib libphobos2.a
|
||||
|
||||
vmkdir usr/include/d
|
||||
@ -71,6 +71,6 @@ libphobos_package() {
|
||||
cp -r ${wrksrc}/html ${PKGDESTDIR}/usr/share/doc/d/
|
||||
find ${PKGDESTDIR}/usr/share/doc/d -type f | xargs chmod 0644
|
||||
|
||||
vinstall ${wrksrc}/src/druntime/LICENSE 644 usr/share/licenses/libphobos
|
||||
vlicense ${wrksrc}/src/druntime/LICENSE
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user