dmd2.081: fix conflicts
This commit is contained in:
parent
4cae459e28
commit
47d8a8879c
1 changed files with 18 additions and 30 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'dmd2.081'
|
# Template file for 'dmd2.081'
|
||||||
pkgname=dmd2.081
|
pkgname=dmd2.081
|
||||||
version=2.081.1
|
version=2.081.1
|
||||||
revision=3
|
revision=4
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
hostmakedepends="which"
|
hostmakedepends="which"
|
||||||
makedepends="dmd-bootstrap"
|
makedepends="dmd-bootstrap"
|
||||||
depends="libphobos2.081>=${version} gcc"
|
depends="gcc"
|
||||||
short_desc="Digital Mars D compiler, 2.081"
|
short_desc="Digital Mars D compiler, 2.081"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="BSL-1.0"
|
license="BSL-1.0"
|
||||||
|
@ -68,40 +68,28 @@ do_install() {
|
||||||
vbin generated/linux/release/$_archbits/dmd
|
vbin generated/linux/release/$_archbits/dmd
|
||||||
vinstall ${FILESDIR}/dmd.conf 644 etc
|
vinstall ${FILESDIR}/dmd.conf 644 etc
|
||||||
|
|
||||||
|
# note: dmd, druntime and phobos all share the same license
|
||||||
|
vlicense LICENSE.txt
|
||||||
|
|
||||||
vman generated/docs/man/man1/dmd.1
|
vman generated/docs/man/man1/dmd.1
|
||||||
vman generated/docs/man/man5/dmd.conf.5
|
vman generated/docs/man/man5/dmd.conf.5
|
||||||
|
|
||||||
|
vmkdir usr/include/d
|
||||||
|
|
||||||
|
cp -r ${wrksrc}/phobos/{*.d,etc,std} ${PKGDESTDIR}/usr/include/d
|
||||||
|
vinstall ${wrksrc}/phobos/generated/linux/release/$_archbits/libphobos2.a 644 usr/lib libphobos2.a
|
||||||
|
|
||||||
|
vmkdir usr/include/d/druntime
|
||||||
|
cp -r ${wrksrc}/druntime/import ${PKGDESTDIR}/usr/include/d/druntime
|
||||||
|
vinstall ${wrksrc}/druntime/generated/linux/release/$_archbits/libdruntime.a 644 usr/lib libdruntime.a
|
||||||
}
|
}
|
||||||
|
|
||||||
dmd2.081-doc_package() {
|
dmd2.081-doc_package() {
|
||||||
short_desc="Documentation and sample code for D programming language"
|
short_desc="Documentation for D programming language (dummy package)"
|
||||||
replaces="dmd-docs>=0"
|
build_style="meta"
|
||||||
|
|
||||||
pkg_install() {
|
|
||||||
cd dmd2
|
|
||||||
|
|
||||||
vmkdir usr/share/doc/d
|
|
||||||
vcopy samples usr/share/doc/d
|
|
||||||
vcopy html usr/share/doc/d
|
|
||||||
|
|
||||||
find ${PKGDESTDIR}/usr/share/doc/d -type f | xargs chmod 0644
|
|
||||||
|
|
||||||
vlicense license.txt
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
libphobos2.081_package() {
|
libphobos2.081_package() {
|
||||||
short_desc+=" - standard library"
|
short_desc+=" - standard library (dummy package)"
|
||||||
conflicts="dmd-bootstrap libphobos"
|
build_style="meta"
|
||||||
pkg_install() {
|
|
||||||
vinstall ${wrksrc}/druntime/generated/linux/release/$_archbits/libdruntime.a 644 usr/lib libdruntime.a
|
|
||||||
vinstall ${wrksrc}/phobos/generated/linux/release/$_archbits/libphobos2.a 644 usr/lib libphobos2.a
|
|
||||||
|
|
||||||
vmkdir usr/include/d
|
|
||||||
cp -r ${wrksrc}/phobos/{*.d,etc,std} ${PKGDESTDIR}/usr/include/d
|
|
||||||
|
|
||||||
vmkdir usr/include/d/druntime
|
|
||||||
cp -r ${wrksrc}/druntime/import ${PKGDESTDIR}/usr/include/d/druntime
|
|
||||||
|
|
||||||
vlicense ${wrksrc}/druntime/LICENSE.txt
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue