diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2006-05-05 18:41:39 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2006-05-05 18:41:39 +0000 |
commit | aea0a63e136e06f3702bd21e955a9f6e3abae5c3 (patch) | |
tree | 6de872836ea973a2e3dce043a03a642995b4287d /dev-embedded/sdcc-svn | |
parent | New ebuild thanks to karpi <karpi.web@email.cz> in bug 132064 (diff) | |
download | gentoo-2-aea0a63e136e06f3702bd21e955a9f6e3abae5c3.tar.gz gentoo-2-aea0a63e136e06f3702bd21e955a9f6e3abae5c3.tar.bz2 gentoo-2-aea0a63e136e06f3702bd21e955a9f6e3abae5c3.zip |
Initial commit.
(Portage version: 2203-svn)
Diffstat (limited to 'dev-embedded/sdcc-svn')
-rw-r--r-- | dev-embedded/sdcc-svn/ChangeLog | 10 | ||||
-rw-r--r-- | dev-embedded/sdcc-svn/Manifest | 2 | ||||
-rw-r--r-- | dev-embedded/sdcc-svn/files/digest-sdcc-svn-2.5.0 | 0 | ||||
-rw-r--r-- | dev-embedded/sdcc-svn/metadata.xml | 6 | ||||
-rw-r--r-- | dev-embedded/sdcc-svn/sdcc-svn-2.5.0.ebuild | 54 |
5 files changed, 72 insertions, 0 deletions
diff --git a/dev-embedded/sdcc-svn/ChangeLog b/dev-embedded/sdcc-svn/ChangeLog new file mode 100644 index 000000000000..e145a28c1705 --- /dev/null +++ b/dev-embedded/sdcc-svn/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-embedded/sdcc-svn +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc-svn/ChangeLog,v 1.1 2006/05/05 18:41:38 calchan Exp $ + +*sdcc-svn-2.5.0 (05 May 2006) + + 05 May 2006; Denis Dupeyron <calchan@gentoo.org> +metadata.xml, + +sdcc-svn-2.5.0.ebuild: + Initial commit. + diff --git a/dev-embedded/sdcc-svn/Manifest b/dev-embedded/sdcc-svn/Manifest new file mode 100644 index 000000000000..4e83b8e179ef --- /dev/null +++ b/dev-embedded/sdcc-svn/Manifest @@ -0,0 +1,2 @@ +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-sdcc-svn-2.5.0 0 +MD5 4ae9097b997f1fd209e778d4cf955136 sdcc-svn-2.5.0.ebuild 1528 diff --git a/dev-embedded/sdcc-svn/files/digest-sdcc-svn-2.5.0 b/dev-embedded/sdcc-svn/files/digest-sdcc-svn-2.5.0 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/dev-embedded/sdcc-svn/files/digest-sdcc-svn-2.5.0 diff --git a/dev-embedded/sdcc-svn/metadata.xml b/dev-embedded/sdcc-svn/metadata.xml new file mode 100644 index 000000000000..4bffe3512fa8 --- /dev/null +++ b/dev-embedded/sdcc-svn/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<longdescription>Small device C compiler (for various microprocessors, sources from Subversion repository)</longdescription> +</pkgmetadata> diff --git a/dev-embedded/sdcc-svn/sdcc-svn-2.5.0.ebuild b/dev-embedded/sdcc-svn/sdcc-svn-2.5.0.ebuild new file mode 100644 index 000000000000..03cbe955b0f8 --- /dev/null +++ b/dev-embedded/sdcc-svn/sdcc-svn-2.5.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc-svn/sdcc-svn-2.5.0.ebuild,v 1.1 2006/05/05 18:41:38 calchan Exp $ + +ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/sdcc/trunk/sdcc" + +inherit subversion + +DESCRIPTION="Small device C compiler (for various microprocessors, sources from Subversion repository)" +HOMEPAGE="http://sdcc.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc" + +DEPEND=">=dev-embedded/gputils-0.13.2 + dev-libs/boehm-gc + doc? ( >=app-office/lyx-1.3.4 )" +RDEPEND="!dev-embedded/sdcc + !dev-embedded/sdcc-cvs" + +src_unpack() { + subversion_src_unpack + cd ${S} + + # Fix conflicting variable names between Gentoo and sdcc + find ./ -type f -exec sed -i s:PORTDIR:PORTINGDIR:g {} \; || die "sed failed" + find device/lib/pic*/ -type f -exec sed -i s:ARCH:SDCCARCH:g {} \; || die "sed failed" + find device/lib/pic/libdev/ -type f -exec sed -i s:CFLAGS:SDCCFLAGS:g {} \; || die "sed failed" + + # --as-needed fix : + sed -i -e "s/= @CURSES_LIBS@ @LIBS@/= @CURSES_LIBS@ @LIBS@ -lcurses/" sim/ucsim/gui.src/serio.src/Makefile.in || die "sed failed" +} + +src_compile() { + econf --enable-libgc docdir=/usr/share/doc/${PF} || die "Configure failed" + emake || die "Make failed" + if use doc ; then + cd doc + lyx -e html cdbfileformat + lyx -e html sdccman + lyx -e html test_suite_spec + fi +} + +src_install() { + emake DESTDIR=${D} install || die "Make install failed" + if use doc ; then + cd doc + insinto /usr/share/doc/${PF} + doins cdbfileformat.html sdccman.html test_suite_spec.html + fi +} |