source: dev-embedded/cc65/cc65-2.13.0.ebuild @ 995b93f2

Revision 995b93f2, 2.4 KB checked in by geos_one <geos_one@…>, 10 years ago (diff)

dev-embedded/cc65: disable the sim65 hack and rename make.info to cc65make.info conflict

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1686 6952d904-891a-0410-993b-d76249ca496b

  • Property mode set to 100644
Line 
1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5inherit eutils toolchain-funcs multilib
6
7DESCRIPTION="It's a complete cross development package for 65(C)02 systems."
8HOMEPAGE="http://www.cc65.org"
9#SRC_URI="ftp://ftp.musoftware.de/pub/uz/cc65/snapshot/cc65-snapshot-sources-${PV}.tar.bz2"
10SRC_URI="ftp://ftp.musoftware.de/pub/uz/${PN}/${PN}-sources-${PV}.tar.bz2"
11
12LICENSE="GPL-2"
13SLOT="0"
14KEYWORDS="~amd64 ~ppc ~x86"
15IUSE="doc"
16
17DEPEND="dev-libs/boehm-gc
18        app-text/linuxdoc-tools"
19
20#S=${WORKDIR}/${PN}-snapshot-${PV}
21
22src_unpack() {
23        unpack ${A}
24        cd "${S}"
25#       sed -i -e "s:od65:od65 sim65:g" src/make/gcc.mak
26        sed -i -e "s:)/lib:)/$(get_libdir):g" make/gcc.mak
27        sed -i -e "s:/lib/cc65/inc:/$(get_libdir)/cc65/inc:g" src/cc65/make/gcc.mak
28        sed -i -e "s:/lib/cc65/lib:/$(get_libdir)/cc65/lib:g" src/ld65/make/gcc.mak
29        sed -i -e "s:/lib/cc65/lib:/$(get_libdir)/cc65/lib:g" doc/ld65.sgml
30        sed -i -e "s:make.sgml:cc65make.sgml:g" doc/Makefile
31        mv doc/make.sgml doc/cc65make.sgml
32#       epatch "${FILESDIR}"/cc65-2.12.0-asneeded-1.patch
33#       epatch "${FILESDIR}"/cc65-2.12.0-cbm_dir-1.patch
34}
35
36src_compile() {
37        emake -j1 -C src -f make/gcc.mak CC="$(tc-getCC)" AR="$(tc-getAR)" || die "src build fail"
38        emake -j1 -C libsrc || die "libsrc build fail"
39        emake -j1 -C doc || die "doc build fail"
40}
41
42src_install() {
43        dobin src/*65/*65 src/ca65html/ca65html src/grc/grc  || die "dobin fail"
44        insinto /usr/$(get_libdir)/cc65/emd
45        doins libsrc/*.emd || die "install memory map fail"
46        insinto /usr/$(get_libdir)/cc65/joy
47        doins libsrc/*.joy || die "install joystick driver fail"
48        insinto /usr/$(get_libdir)/cc65/mou
49        doins libsrc/*.mou || die "install mouse driver fail"
50        insinto /usr/$(get_libdir)/cc65/ser
51        doins libsrc/*.ser || die "install UART driver fail"
52        insinto /usr/$(get_libdir)/cc65/tgi
53        doins libsrc/*.tgi || die "install graphic driver fail"
54        insinto /usr/$(get_libdir)/cc65/asminc
55        doins asminc/*.inc || die "install asm include fail"
56        insinto /usr/$(get_libdir)/cc65/include
57        doins -r include/* || die "install include fail"
58        insinto /usr/$(get_libdir)/cc65/lib
59        doins libsrc/*.lib || die "install lib definations fail"
60        doins libsrc/*.o || die "install lib fail"
61        use doc && dohtml doc/*.htm*
62        doman packages/debian/*.1 || die "man install fail"
63        doinfo doc/*.info || die "info install fail"
64        dodoc src/ld65/cfg/*.cfg || die "cfg install fail"
65        dodoc src/ca65/macpack/*.mac || die "macro install fail"
66}
Note: See TracBrowser for help on using the repository browser.