summaryrefslogtreecommitdiff
path: root/gdc
diff options
context:
space:
mode:
authorDanny Rawlins <romster@shortcircuit.net.au>2006-11-21 22:03:23 +1100
committerDanny Rawlins <romster@shortcircuit.net.au>2006-11-21 22:03:23 +1100
commitdca6ea985b41392725664f0c3a76e23f1bf69682 (patch)
tree188051bf01a1897aa4df8238130681c8726240d8 /gdc
parent586de4fed3f2365589c3a460ab8c7d8f2a1645c7 (diff)
downloadcontrib-dca6ea985b41392725664f0c3a76e23f1bf69682.tar.gz
contrib-dca6ea985b41392725664f0c3a76e23f1bf69682.tar.xz
initial adding of ports from romsters repo
Diffstat (limited to 'gdc')
-rw-r--r--gdc/.footprint183
-rw-r--r--gdc/.md5sum4
-rw-r--r--gdc/Pkgfile68
-rw-r--r--gdc/Pkgfile~75
-rw-r--r--gdc/gdc-4.0.3-version.patch12
5 files changed, 342 insertions, 0 deletions
diff --git a/gdc/.footprint b/gdc/.footprint
new file mode 100644
index 000000000..12497460b
--- /dev/null
+++ b/gdc/.footprint
@@ -0,0 +1,183 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/gdc
+-rwxr-xr-x root/root usr/bin/gdmd
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/d/
+drwxr-xr-x root/root usr/include/d/4.0.3/
+-rw-r--r-- root/root usr/include/d/4.0.3/crc32.d
+drwxr-xr-x root/root usr/include/d/4.0.3/etc/
+drwxr-xr-x root/root usr/include/d/4.0.3/etc/c/
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib.d
+drwxr-xr-x root/root usr/include/d/4.0.3/etc/c/zlib/
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/crc32.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/deflate.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/infblock.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/infcodes.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/inffast.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/inffixed.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/inflate.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/inftrees.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/infutil.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/trees.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/zconf.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/zconf.in.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/zlib.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/c/zlib/zutil.h
+-rw-r--r-- root/root usr/include/d/4.0.3/etc/gamma.d
+drwxr-xr-x root/root usr/include/d/4.0.3/gcc/
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/aix_float.h
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/builtins.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/configext.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/deh.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/fpmath.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/support.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/threadsem.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcc/unwind.d
+-rw-r--r-- root/root usr/include/d/4.0.3/gcstats.d
+drwxr-xr-x root/root usr/include/d/4.0.3/i686-pc-linux-gnu/
+drwxr-xr-x root/root usr/include/d/4.0.3/i686-pc-linux-gnu/gcc/
+-rw-r--r-- root/root usr/include/d/4.0.3/i686-pc-linux-gnu/gcc/config.d
+-rw-r--r-- root/root usr/include/d/4.0.3/i686-pc-linux-gnu/gcc/configunix.d
+-rwxr-xr-x root/root usr/include/d/4.0.3/i686-pc-linux-gnu/phobos-ver-syms
+-rw-r--r-- root/root usr/include/d/4.0.3/object.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/array.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/asserterror.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/base64.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/bitarray.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/boxer.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/darwin/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/darwin/darwin.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/darwin/ldblcompat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/dirent.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/fenv.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/linux/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/linux/ldblcompat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/linux/linux.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/linux/linuxextern.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/linux/socket.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/mach/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/mach/mach.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/mach/mach_extern.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/math.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/process.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/skyos/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/skyos/compat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/skyos/skyos.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/stdarg.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/stddef.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/stdio.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/stdlib.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/string.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/time.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/unix/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/unix/unix.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/c/windows/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/windows/com.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/windows/windows.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/c/windows/winsock.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/compiler.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/conv.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/cover.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/cstream.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/ctype.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/date.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/dateparse.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/demangle.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/file.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/format.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/gc.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/intrinsic.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/loader.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/math.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/math2.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/md5.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/mmfile.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/moduleinit.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/openrj.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/outbuffer.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/outofmemory.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/path.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/perf.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/process.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/random.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/regexp.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/socket.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/socketstream.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/stdarg.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/stdint.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/stdio.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/stream.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/string.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/switcherr.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/syserror.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/system.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/thread.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/typeinfo/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_AC.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Aa.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Abit.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Acdouble.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Acfloat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Acreal.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Adchar.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Adouble.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Afloat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Ag.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Aint.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Along.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Areal.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Ashort.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Aubyte.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Auint.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Aulong.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Aushort.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_Awchar.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_C.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_bit.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_byte.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_cdouble.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_cfloat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_char.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_creal.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_dchar.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_delegate.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_double.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_float.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_idouble.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ifloat.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_int.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ireal.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_long.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ptr.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_real.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_short.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ubyte.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_uint.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ulong.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_ushort.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_void.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/typeinfo/ti_wchar.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/uni.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/uri.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/utf.d
+drwxr-xr-x root/root usr/include/d/4.0.3/std/windows/
+-rw-r--r-- root/root usr/include/d/4.0.3/std/windows/charset.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/windows/iunknown.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/windows/registry.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/windows/syserror.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/zip.d
+-rw-r--r-- root/root usr/include/d/4.0.3/std/zlib.d
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/gcc/
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/
+-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.0.3/cc1d
+-rwxr-xr-x root/root usr/lib/libgphobos.a
+-rwxr-xr-x root/root usr/lib/libgphobos.spec
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/gdc.1.gz
+-rw-r--r-- root/root usr/man/man1/gdmd.1.gz
diff --git a/gdc/.md5sum b/gdc/.md5sum
new file mode 100644
index 000000000..eeb6b83d9
--- /dev/null
+++ b/gdc/.md5sum
@@ -0,0 +1,4 @@
+347231730fb44b609b69226c3e432d80 gcc-core-4.0.3.tar.bz2
+0ed89562540b392c87ef2bd140be5d58 gcc-g++-4.0.3.tar.bz2
+4e6d32b58e7a68b67a54e5890245ead0 gdc-0.19-src.tar.bz2
+e35acd0ee75799f0a82b6e9c7e330073 gdc-4.0.3-version.patch
diff --git a/gdc/Pkgfile b/gdc/Pkgfile
new file mode 100644
index 000000000..537d3578d
--- /dev/null
+++ b/gdc/Pkgfile
@@ -0,0 +1,68 @@
+# Description: GDC is a D language front end for the GNU Compiler Collection.
+# URL: http://dgcc.sourceforge.net/
+# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
+# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
+# Depends on:
+
+name=gdc
+version=0.19
+gcc_version=4.0.3
+release=1
+source=(http://dl.sourceforge.net/sourceforge/dgcc/gdc-$version-src.tar.bz2 \
+ ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gcc_version/gcc-{core,g++}-$gcc_version.tar.bz2 \
+ $name-$gcc_version-version.patch)
+
+build() {
+ patch -d gcc-$gcc_version -p1 -i $SRC/$name-$gcc_version-version.patch
+ mkdir build
+ cd gcc-$gcc_version
+ mv $SRC/d $SRC/gcc-$gcc_version/gcc/d
+ ./gcc/d/setup-gcc.sh
+ cd ../build
+
+ ../gcc-$gcc_version/configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --enable-languages=d \
+ --enable-threads=posix \
+ --enable-__cxa_atexit \
+ --enable-clocale=gnu \
+ --enable-shared \
+ --disable-nls \
+ --with-x=no
+
+ make
+ #make check
+ make DESTDIR=$PKG install
+
+ # remove un-needed files
+ find $PKG -name 'README' -exec rm {} \;
+
+ rm \
+ $PKG/usr/lib/libiberty.a \
+ $PKG/usr/bin/*-linux-gnu-*
+
+ rm -r \
+ $PKG/usr/info \
+ $PKG/usr/lib/gcc/*/$gcc_version/install-tools
+
+ rm -fr \
+ $PKG/usr/man/man1/{cpp,gcc,gcov}.1.gz \
+ $PKG/usr/man/man7
+
+ # remove files already on the system out of the port
+ for i in $(find $PKG | sed -e "s|$PKG|/|"); do
+ if [ -e "$i" ] && [ ! -d "$i" ] ; then
+ rm $PKG/$i
+ fi
+ done
+
+ # Remove empty directories
+ find $PKG -depth -empty -exec rm -r {} \;
+
+ # remove build links from *.la files
+ for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do
+ sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i
+ done
+}
+
diff --git a/gdc/Pkgfile~ b/gdc/Pkgfile~
new file mode 100644
index 000000000..a616e4493
--- /dev/null
+++ b/gdc/Pkgfile~
@@ -0,0 +1,75 @@
+# $Id:
+# Description: GDC is a D language front end for the GNU Compiler Collection.
+# URL: http://dgcc.sourceforge.net/
+# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
+# Packager: Danny Rawlins, <romster@shortcircuit.net.au>
+# Depends on:
+
+# Recommended:
+# Optional: autogen
+# Category: compiler, d
+
+name=gdc
+version=0.19
+gcc_version=4.0.3
+release=1
+source=(http://dl.sourceforge.net/sourceforge/dgcc/gdc-$version-src.tar.bz2 \
+ ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$gcc_version/gcc-{core,g++}-$gcc_version.tar.bz2 \
+ gcc-$gcc_version-version.patch)
+
+build() {
+ patch -d gcc-$gcc_version -p1 -i $SRC/gcc-$gcc_version-version.patch
+ mkdir build
+ cd gcc-$gcc_version
+ mv $SRC/d $SRC/gcc-$gcc_version/gcc/d
+ ./gcc/d/setup-gcc.sh
+ cd ../build
+
+ ../gcc-$gcc_version/configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --enable-languages=d \
+ --enable-threads=posix \
+ --enable-__cxa_atexit \
+ --enable-clocale=gnu \
+ --enable-shared \
+ --disable-nls \
+ --with-x=no
+
+ make
+ #make check
+ make DESTDIR=$PKG install
+
+ # remove un-needed files
+ find $PKG -name 'README' -exec rm {} \;
+
+ rm \
+ $PKG/usr/lib/libiberty.a \
+ $PKG/usr/bin/*-linux-gnu-*
+
+ rm -r \
+ $PKG/usr/info \
+ $PKG/usr/lib/gcc/*/$gcc_version/install-tools
+
+ rm -rf \
+ $PKG/usr/man/man1/{cpp,gcc,gcov}.1.gz \
+ $PKG/usr/man/man7
+
+ # remove files already on the system out of the port
+ for i in $(find $PKG | sed -e "s|$PKG|/|"); do
+ if [ -e "$i" ] && [ ! -d "$i" ] ; then
+ rm $PKG/$i
+ fi
+ done
+
+ # Remove empty directories
+ find $PKG -depth -empty -exec rm -r {} \;
+
+ # remove build links from *.la files
+ for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do
+ sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i
+ done
+
+ chown -R root:root $PKG
+}
+
diff --git a/gdc/gdc-4.0.3-version.patch b/gdc/gdc-4.0.3-version.patch
new file mode 100644
index 000000000..7db7456bf
--- /dev/null
+++ b/gdc/gdc-4.0.3-version.patch
@@ -0,0 +1,12 @@
+diff -Nru gcc-4.0.3-old/gcc/version.c gcc-4.0.3/gcc/version.c
+--- gcc-4.0.3-old/gcc/version.c 2006-03-14 02:13:18.000000000 +0100
++++ gcc-4.0.3/gcc/version.c 2006-03-14 02:14:20.000000000 +0100
+@@ -5,7 +5,7 @@
+ please modify this string to indicate that, e.g. by putting your
+ organization's name in parentheses at the end of the string. */
+
+-const char version_string[] = "4.0.3";
++const char version_string[] = "4.0.3 (CRUX)";
+
+ /* This is the location of the online document giving instructions for
+ reporting bugs. If you distribute a modified version of GCC,

Generated by cgit