diff options
author | George Shapovalov <george@gentoo.org> | 2006-01-17 13:09:04 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2006-01-17 13:09:04 +0000 |
commit | c87ba347d8717c33dc6f5a7c8cc0b5d1c619c6f7 (patch) | |
tree | 2ed7cbf40c91654d5b6f7ad13da583326023addc /dev-lang/gpc | |
parent | Version bump. Dropped ~mips keyword since there is no recent version of dev-u... (diff) | |
download | gentoo-2-c87ba347d8717c33dc6f5a7c8cc0b5d1c619c6f7.tar.gz gentoo-2-c87ba347d8717c33dc6f5a7c8cc0b5d1c619c6f7.tar.bz2 gentoo-2-c87ba347d8717c33dc6f5a7c8cc0b5d1c619c6f7.zip |
new version, dependency on gcc is no longer necessary (slightly different build, #119138)
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-lang/gpc')
-rw-r--r-- | dev-lang/gpc/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lang/gpc/Manifest | 8 | ||||
-rw-r--r-- | dev-lang/gpc/files/digest-gpc-20051104 | 2 | ||||
-rw-r--r-- | dev-lang/gpc/gpc-20051104.ebuild | 149 |
4 files changed, 164 insertions, 5 deletions
diff --git a/dev-lang/gpc/ChangeLog b/dev-lang/gpc/ChangeLog index f5d734957396..0ccc07703f33 100644 --- a/dev-lang/gpc/ChangeLog +++ b/dev-lang/gpc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/gpc -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/ChangeLog,v 1.15 2005/04/17 21:28:18 george Exp $ +# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/ChangeLog,v 1.16 2006/01/17 13:09:04 george Exp $ + +*gpc-20051104 (17 Jan 2006) + + 17 Jan 2006; George Shapovalov <george@gentoo.org> +gpc-20051104.ebuild: + new version, dependency on gcc is no longer necessary (slightly different + build, #119138) *gpc-20050331 (17 Apr 2005) diff --git a/dev-lang/gpc/Manifest b/dev-lang/gpc/Manifest index 7cc4e472546c..cadca74799fe 100644 --- a/dev-lang/gpc/Manifest +++ b/dev-lang/gpc/Manifest @@ -1,6 +1,8 @@ -MD5 1f77a71e0c3fa6606ca65ded8517ba0c gpc-20050331.ebuild 4421 -MD5 18b0357cd7e1abeabb5072b7989b72ad gpc-20040516.ebuild 4518 MD5 20834287e8e388217c224d8d2d802782 ChangeLog 2197 -MD5 1895a0b05d28c3ad7eaabcd41791e3eb metadata.xml 224 MD5 7d39eec7b0bdf6f3ba14b266f4799d2a files/digest-gpc-20040516 129 MD5 1ae0cf0dc51fa1811dc89ec5f4a1ccb4 files/digest-gpc-20050331 130 +MD5 c6e6f9112b5cbbe602a6a6b0ad9ffa93 files/digest-gpc-20051104 135 +MD5 18b0357cd7e1abeabb5072b7989b72ad gpc-20040516.ebuild 4518 +MD5 1f77a71e0c3fa6606ca65ded8517ba0c gpc-20050331.ebuild 4421 +MD5 477299fc43655ce3a115cf170d204e9c gpc-20051104.ebuild 3931 +MD5 1895a0b05d28c3ad7eaabcd41791e3eb metadata.xml 224 diff --git a/dev-lang/gpc/files/digest-gpc-20051104 b/dev-lang/gpc/files/digest-gpc-20051104 new file mode 100644 index 000000000000..c8c290e45769 --- /dev/null +++ b/dev-lang/gpc/files/digest-gpc-20051104 @@ -0,0 +1,2 @@ +MD5 0114ba67f9aabad91d96797d0b6017c4 gcc-core-3.4.5.tar.bz2 13397308 +MD5 1c90caf740c6f4db1e06858c14d85c71 gpc-20051104.tar.bz2 2616173 diff --git a/dev-lang/gpc/gpc-20051104.ebuild b/dev-lang/gpc/gpc-20051104.ebuild new file mode 100644 index 000000000000..2f929d1597e8 --- /dev/null +++ b/dev-lang/gpc/gpc-20051104.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/gpc/gpc-20051104.ebuild,v 1.1 2006/01/17 13:09:04 george Exp $ + +inherit eutils flag-o-matic versionator + +strip-flags +filter-flags "-pipe" + +#due to cache requirements we cannot dynamically match gcc version +#so sticking to a particular (and working) one +GCCVER="3.4.5" + +DESCRIPTION="Gnu Pascal Compiler" +HOMEPAGE="http://gnu-pascal.de" +SRC_URI="http://www.math.uni.wroc.pl/~hebisch/${PN}/${P}.tar.bz2 + ftp://gcc.gnu.org/pub/gcc/releases/gcc-${GCCVER}/gcc-core-${GCCVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nls" + +DEPEND="virtual/libc" + +S="${WORKDIR}/gcc-${GCCVER}" + +# GCC version strings +GCCMAJOR=$(get_version_component_range 1 "${GCCVER}") +GCCMINOR=$(get_version_component_range 2 "${GCCVER}") +GCCBRANCH=$(get_version_component_range 1-2 "${GCCVER}") +GCCRELEASE=$(get_version_component_range 1-3 "${GCCVER}") + +# possible future crosscompilation support +export CTARGET=${CTARGET:-${CHOST}} + +PREFIX="/usr" +LIBPATH="${PREFIX}/lib/${PN}/${CTARGET}/${GCCBRANCH}" +LIBEXECPATH="${PREFIX}/libexec/${PN}/${CTARGET}/${GCCBRANCH}" +INCLUDEPATH="${LIBPATH}/include" +DATAPATH="${PREFIX}/share" + +BUILDDIR="${WORKDIR}/build" + +src_unpack() { + unpack ${A} + + cd "${WORKDIR}/${P}/p" + + #comment out read to let ebuild continue + sed -i -e "s:read:#read:" config-lang.in || die "seding autoreplies failed" + #and remove that P var (it doesn't seem to do much except to break a build) + sed -i -e "s:\$(P)::" Make-lang.in || die "seding Make-lan.in failed" + + cd "${WORKDIR}" + mv ${P}/p "${S}/gcc/" + + # Build in a separate build tree + mkdir -p ${BUILDDIR} +} + +src_compile() { + local myconf + + if use nls; then + myconf="${myconf} --enable-nls --without-included-gettext" + else + myconf="${myconf} --disable-nls" + fi + + # reasonably sane globals (from toolchain) + myconf="${myconf} \ + --with-system-zlib \ + --disable-checking \ + --disable-werror \ + --disable-libunwind-exceptions" + + cd ${BUILDDIR} + + einfo "Configuring GCC for GPC build..." +# addwrite "/dev/zero" + ${S}/configure \ + --prefix=${PREFIX} \ + --libdir="${LIBPATH}" \ + --libexecdir="${LIBEXECPATH}" \ + --datadir=${DATAPATH} \ + --mandir=${DATAPATH}/man \ + --infodir=${DATAPATH}/info \ + --program-prefix="" \ + --enable-shared \ + --host=${CHOST} \ + --target=${CTARGET} \ + --enable-languages="c,pascal" \ + --enable-threads=posix \ + --enable-long-long \ + --enable-cstdio=stdio \ + --enable-clocale=generic \ + --enable-__cxa_atexit \ + --enable-version-specific-runtime-libs \ + --with-local-prefix=${PREFIX}/local \ + ${myconf} || die "configure failed" + + touch ${S}/gcc/c-gperf.h + + einfo "Building GPC..." + # Fix for our libtool-portage.patc + emake -j1 LIBPATH="${LIBPATH}" bootstrap || die "make failed" +} + +src_install () { + # Do not allow symlinks in ${PREFIX}/lib/gcc-lib/${CHOST}/${PV}/include as + # this can break the build. + for x in cd ${BUILDDIR}/gcc/include/*; do + if [ -L ${x} ]; then + rm -f ${x} + fi + done + + einfo "Installing GPC..." + cd ${BUILDDIR}/gcc + make DESTDIR=${D} \ + pascal.install-with-gcc || die + + # gcc insists on installing libs in its own place + mv "${D}${LIBPATH}/gcc/${CTARGET}/${GCCRELEASE}"/* "${D}${LIBPATH}" + if [ "${ARCH}" == "amd64" ]; then + # ATTN! this may in fact be related to multilib, rather than amd64 + mv "${D}${LIBPATH}/gcc/${CTARGET}"/lib64/libgcc_s* "${D}${LIBPATH}" + mv "${D}${LIBPATH}/gcc/${CTARGET}"/lib/libgcc_s* "${D}${LIBPATH}"/32/ + fi + mv "${D}${LIBEXECPATH}/gcc/${CTARGET}/${GCCRELEASE}"/* "${D}${LIBEXECPATH}" + + rm -rf "${D}${LIBPATH}/gcc" + rm -rf "${D}${LIBEXECPATH}/gcc" + rm -rf "${D}${LIBEXECPATH}"/install-tools/ + + # Install documentation. + dodir /usr/share/doc/${PF} + mv ${D}${PREFIX}/doc/gpc/* ${D}/usr/share/doc/${PF} + prepalldocs + + # final cleanups + rmdir ${D}${PREFIX}/include ${D}/${PREFIX}/share/man/man7 + rm -rf ${D}${PREFIX}/doc + + # create an env.d entry + dodir /etc/env.d + echo "PATH=${LIBEXECPATH}" > ${D}etc/env.d/56gpc +} |