net-im/dingtalk: bump to 1.2.0.147
[gentoo-zh.git] / sys-devel / ucc / ucc-1.1-r0.ebuild
blobf2cc6abe494b90c207a7a6b14362c888674b92de
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit eutils
8 DESCRIPTION="UCC is an ANSI C Compiler"
9 HOMEPAGE="https://sourceforge.net/projects/ucc"
10 ECVS_CVS_OPTIONS="-dP -z3"
11 SRC_URI="mirror://sourceforge/ucc/${PN}160.zip"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
17 RESTRICT="mirror test"
18 IUSE=""
20 DEPEND=""
21 RDEPEND=""
23 S="${WORKDIR}/${PN}"
25 src_prepare() {
26 default
27 sed -i 's:/usr/local/lib/ucc/:/usr/lib/ucc/:' "${S}/driver/linux.c" || die
28 sed -i 's:UCCDIR \"ucl\":\"/usr/bin/ucl\":' "${S}/driver/linux.c" || die
29 sed -i 's:make -C:$(MAKE) -C:' "${S}/Makefile" || die
30 eapply "${FILESDIR}/fix-ignore-cflags-and-ldflags.patch"
33 src_install() {
34 dodir /usr/lib/ucc
35 dodir /usr/bin
36 dobin driver/ucc
37 dobin ucl/ucl
38 dodir /usr/lib/ucc
39 insinto /usr/lib/ucc
40 doins ucl/assert.o
41 dodir /usr/include/ucc
42 cp -r ucl/linux/include/* "${D}"/usr/include/ucc