New package: dmd-2.061 -- The Digital Mars D Compiler.
This commit is contained in:
parent
df9c1d8df3
commit
b3c4a16918
|
@ -0,0 +1,2 @@
|
|||
[Environment]
|
||||
DFLAGS=-I/usr/include/d -I/usr/include/d/druntime/import -L-L/usr/lib -L-L/usr/lib -L--no-warn-search-mismatch -L--export-dynamic
|
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'libphobos'.
|
||||
#
|
||||
short_desc="The phobos D standard library for DMD"
|
||||
license="Boost License"
|
||||
|
||||
do_install() {
|
||||
vinstall src/druntime/lib/libdruntime-linux${_archbits}.a \
|
||||
644 usr/lib libdruntime.a
|
||||
vinstall src/phobos/generated/linux/release/$_archbits/libphobos2.a \
|
||||
644 usr/lib libphobos2.a
|
||||
|
||||
vmkdir usr/include/d
|
||||
cp -r src/phobos/{*.d,etc,std} ${DESTDIR}/usr/include/d
|
||||
|
||||
vmkdir usr/include/d/druntime
|
||||
cp -r src/druntime/import ${DESTDIR}/usr/include/d/druntime
|
||||
|
||||
vmkdir usr/share/doc/d/
|
||||
cp -r html ${DESTDIR}/usr/share/doc/d/
|
||||
find ${DESTDIR}/usr -type f | xargs chmod 0644
|
||||
|
||||
vinstall src/druntime/LICENSE 644 usr/share/licenses/libphobos
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
# Template file for 'dmd'
|
||||
pkgname=dmd
|
||||
version=2.061
|
||||
revision=1
|
||||
wrksrc="dmd2"
|
||||
subpackages="libphobos"
|
||||
makedepends="unzip"
|
||||
short_desc="The Digital Mars D compiler"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.digitalmars.com/d/2.0/"
|
||||
license="GPL-2"
|
||||
distfiles="http://ftp.digitalmars.com/dmd.${version}.zip"
|
||||
checksum="13b546b69d628280f245ab19bf4ed27ab66a0085afdaf950e075e68acc7f4c93"
|
||||
|
||||
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||
_archbits=64
|
||||
elif [ "$XBPS_MACHINE" = "i686" ]; then
|
||||
_archbits=32
|
||||
fi
|
||||
|
||||
disable_debug=yes
|
||||
|
||||
do_build() {
|
||||
cd src
|
||||
|
||||
cd dmd
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits}
|
||||
|
||||
cd ../druntime
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits} DMD=../dmd/dmd
|
||||
|
||||
cd ../phobos
|
||||
make ${makejobs} -f posix.mak MODEL=${_archbits} DMD=../dmd/dmd
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall src/dmd/dmd 755 usr/bin
|
||||
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/man1/dmd.conf.5 644 usr/share/man/man5
|
||||
|
||||
vmkdir usr/share/d/samples
|
||||
cp -r samples/d/* ${DESTDIR}/usr/share/d/samples/
|
||||
|
||||
find ${DESTDIR}/usr -type f | xargs chmod 0644
|
||||
|
||||
for f in ddemangle dman dumpobj obj2asm rdmd; do
|
||||
vinstall linux/bin${_archbits}/${f} 755 usr/bin
|
||||
done
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
dmd
|
Loading…
Reference in New Issue