You are not logged in.

#1 2004-06-26 14:16:42

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

D language Compiler and Linker

anyone has made a PKGBUILD for this lang?
http://www.digitalmars.com/d/
http://www.dsource.org/
thx

Offline

#2 2004-07-06 11:05:21

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dmd
pkgver=0.1
pkgrel=1
pkgdesc="The D Programming Language Compiler"
url="http://www.digitalmars.com/d/"
depends=(gcc)
install=
source=(ftp://ftp.digitalmars.com/$pkgname.zip)
md5sums=()

build() {
  cd $startdir/src/
  mkdir -p $startdir/pkg/usr/bin/ $startdir/pkg/usr/lib/ $startdir/pkg/etc $startdir/pkg/usr/include/
  chmod a+x dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj
  echo '[Environment]' >> $startdir/pkg/etc/dmd.conf
  echo 'DFLAGS=-I/usr/include/phobos:/usr/include/dlang/' >> $startdir/pkg/etc/dmd.conf
  cp dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj $startdir/pkg/usr/bin/
  cp dmd/lib/libphobos.a $startdir/pkg/usr/lib/
  cp -R dmd/src/phobos $startdir/pkg/usr/include/
}

jabber id: arael (at) fov (dot) pl

Offline

#3 2004-07-06 13:05:30

zeppelin
Member
From: Athens, Greece
Registered: 2004-03-05
Posts: 807
Website

Re: D language Compiler and Linker

thanks arael!
Do you play/program with D?

eitherways, we all welcome Poland in EU! tongue

Offline

#4 2004-08-09 22:44:11

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

The more I use D the more I like it. smile


jabber id: arael (at) fov (dot) pl

Offline

#5 2004-08-09 22:45:27

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

Oh, almost forgot... I wish you nice olympic games. wink


jabber id: arael (at) fov (dot) pl

Offline

#6 2004-08-10 03:41:45

tehdely
Member
Registered: 2004-02-20
Posts: 148
Website

Re: D language Compiler and Linker

How exactly do I compile the D compiler, instead of using the provided binaries?  I see sources are provided but from the looks of things, there's no makefile or even a README.  Lame  roll


[Arch GNUstep Repository] [ PKGBUILDS ]
[code][gnustep]
Server = ftp://blkwidow.lerp.com/pub/mirror/arch/gnustep[/code]

Offline

#7 2004-08-10 06:54:24

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

Everything about D is still bit tricky. I would prefer something like "Gnu d compiler" better than DMD.

Anyway I've prepared first custom module PKGBUILD. To store include files somewhere more compatibily I've choosen /usr/include/dlang path. DMD upgrade is needed to make this path added to defualt include list

# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dui
pkgver=00.14
pkgrel=97
pkgdesc="D Programing Language GUI Toolkit"
url="http://dui.sourceforge.net"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://belnet.dl.sourceforge.net/sourceforge/dui/${pkgname}_${pkgver}_${pkgrel}.tar.gz)
md5sums=()

build() {
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  make

  #INC
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  mkdir -p $startdir/pkg/usr/include/dlang/
  cd src
  cp -R * $startdir/pkg/usr/include/dlang/

  #LIB
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  mkdir -p $startdir/pkg/usr/lib/
  cp libdui.a -p $startdir/pkg/usr/lib
 
}

Don't forget about upgraded dmd PKGBUILD

I need to subscribe to some d-related mailing list or something. Oh and I must finally start to be a Trusted User.


jabber id: arael (at) fov (dot) pl

Offline

#8 2004-08-10 20:27:12

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: D language Compiler and Linker

arael wrote:

Everything about D is still bit tricky. I would prefer something like "Gnu d compiler" better than DMD.

Anyway I've prepared first custom module PKGBUILD. To store include files somewhere more compatibily I've choosen /usr/include/dlang path. DMD upgrade is needed to make this path added to defualt include list

# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dui
pkgver=00.14
pkgrel=97
pkgdesc="D Programing Language GUI Toolkit"
url="http://dui.sourceforge.net"
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://belnet.dl.sourceforge.net/sourceforge/dui/${pkgname}_${pkgver}_${pkgrel}.tar.gz)
md5sums=()

build() {
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  make

  #INC
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  mkdir -p $startdir/pkg/usr/include/dlang/
  cd src
  cp -R * $startdir/pkg/usr/include/dlang/

  #LIB
  cd $startdir/src/${pkgname}_${pkgver}_${pkgrel}
  mkdir -p $startdir/pkg/usr/lib/
  cp libdui.a -p $startdir/pkg/usr/lib
 
}

Don't forget about upgraded dmd PKGBUILD

I need to subscribe to some d-related mailing list or something. Oh and I must finally start to be a Trusted User.

the pkgrel is reserved in arch for it's own release-number - use origrel or other variable instead pkgrel if you need it - pkgrel starts at 1 and if the pkg changes, but not the version of the software inside, then pkgrel++ --- in TUR/staging the pkgrel has a s as prefix

you can remove not used specifications:
makedepends=()
conflicts=()
replaces=()

no depends at all?
at least dmd is needed for dui


The impossible missions are the only ones which succeed.

Offline

#9 2004-08-10 22:46:06

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

> the pkgrel is reserved in arch for (...)
:oops: I know ...

> no depends at all?
> at least dmd is needed for dui
These are prealpha PKGBUILD. I've forgotten about it. I'll fix this. Thanks for remind. I'm looking for many things about libaries writen in D - this language seems to be not prepared for packaging at all and this bother me now.

If anyone is interested in any DLang related stuff please post requests here.


jabber id: arael (at) fov (dot) pl

Offline

#10 2004-08-11 00:14:11

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: D language Compiler and Linker

arael wrote:

> the pkgrel is reserved in arch for (...)
:oops: I know ...

> no depends at all?
> at least dmd is needed for dui
These are prealpha PKGBUILD. I've forgotten about it. I'll fix this. Thanks for remind. I'm looking for many things about libaries writen in D - this language seems to be not prepared for packaging at all and this bother me now.

If anyone is interested in any DLang related stuff please post requests here.

ok, cool

what do you mean with "not prepared for packaging"? bad makefiles? hardcoded paths?


The impossible missions are the only ones which succeed.

Offline

#11 2004-08-11 07:09:27

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

Look for installation guide for DMD. It said to be installed somewhere in home directory. Custom modules seems to follow this convention that D is used now by some interested users .

Another thing is that in C or C++ you've got *.h and *.c files. While installing it's simple to copy just *.h ones. In D you've got only *.d files all the time and have to prepare another ones that could lay in system after installation. I'm looking for a way to strip code from them automagicaly. Or maybe someone/something enlights me in suprising way.

DUI is bit messy for me. On D forum I was told that d include files should be installed directly in /usr/include. But lets look at DUI's src/ - that I assume almost all should be copied (becose author didn't prepared nothing like make install). It has many dirs - not even with some unique names. Storing such include code in one place (event /usr/include/dlang or something) will rapidly cause a dir names conflicts. Storing those files in subdirs - one for every libary - forces user to use other import paths than on tutorials etc.


jabber id: arael (at) fov (dot) pl

Offline

#12 2004-08-13 12:44:18

arael
Member
From: Poland, Katowice
Registered: 2004-02-25
Posts: 75

Re: D language Compiler and Linker

# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dmd
pkgver=0.95
pkgrel=1
pkgdesc="D Programing Language Compiler"
url="http://www.digitalmars.com/d/"
depends=(gcc)
source=(ftp://ftp.digitalmars.com/$pkgname.zip)

build() {
  cd $startdir/src/
  mkdir -p $startdir/pkg/usr/bin/ $startdir/pkg/usr/lib/ $startdir/pkg/etc $startdir/pkg/usr/include/
  chmod a+x dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj
  echo '[Environment]' >> $startdir/pkg/etc/dmd.conf
  echo 'DFLAGS="-I/usr/include/phobos:/usr/include/dlang/"' >> $startdir/pkg/etc/dmd.conf
  cp dmd/bin/dmd dmd/bin/obj2asm dmd/bin/dumpobj $startdir/pkg/usr/bin/
  cp dmd/lib/libphobos.a $startdir/pkg/usr/lib/
  cp -R dmd/src/phobos $startdir/pkg/usr/include/
}
md5sums=('d00dc3739b08a81c841daafb0dfab620')
# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dlang-sdlport
pkgver=1.2.3
pkgrel=1
pkgdesc="D Programing Language SDL Port"
url="http://int19h.tamb.ru/"
depends=(sdl dmd)
makedepends=(perl)
source=(http://int19h.tamb.ru/files/SDL.zip)

build() {
  #INC
  cd $startdir/src/
  mkdir -p $startdir/pkg/usr/include/dlang/
  chmod 0666 *.d

  #HACK :/
  perl -pi -e 's/import SDL_Keysym/import SDL_keysymf/' SDL_keyboard.d
  mv SDL_keysym.d SDL_keysymf.d

  cp -R *.d $startdir/pkg/usr/include/dlang/
}
md5sums=('4091a252da5f5559c0257cdb964cd36a')
# Packager: Dawid Ciezarkiewicz "arael" <arael@fov.pl>
pkgname=dlang-dui
pkgver=00.14_97
pkgrel=1
pkgdesc="D Programing Language GUI Toolkit"
url="http://dui.sourceforge.net"
depends=(dmd gtk2)
source=(http://belnet.dl.sourceforge.net/sourceforge/dui/dui_${pkgver}.tar.gz)

build() {
  cd $startdir/src/dui_${pkgver}
  make

  #INC
  cd $startdir/src/dui_${pkgver}
  mkdir -p $startdir/pkg/usr/include/dlang/
  cd src
  cp -R `ls | grep -v gameIn4` $startdir/pkg/usr/include/dlang/

  #LIB
  cd $startdir/src/dui_${pkgver}
  mkdir -p $startdir/pkg/usr/lib/
  cp libdui.a -p $startdir/pkg/usr/lib
}
md5sums=('adf239006f59ebad01cf81767c996bfa')

jabber id: arael (at) fov (dot) pl

Offline

Board footer

Powered by FluxBB