blob: cd525f9814c67daef92e130876f9048c1e441e24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
# Would allow installing gentoo on any arch.
DESCRIPTION="The lcc retargetable ANSI C compiler"
HOMEPAGE="https://drh.github.io/lcc/"
SHA='3fd0acc0c3087411c0966d725a56be29038c05a9'
SRC_URI="https://github.com/drh/lcc/archive/${SHA}.tar.gz"
# Build using CMake, still missing some features.
PATCHES=( "${FILESDIR}/add_cmake_support.patch" )
LICENSE="lcc"
SLOT="0"
KEYWORDS="~amd64"
# What are the dependencies if any?
#DEPEND=""
#RDEPEND="${DEPEND}"
#BDEPEND=""
S="${WORKDIR}/${PN}-${SHA}"
src_install() {
doman "doc/bprint.1"
doman "doc/lcc.1"
#into "/usr/lib/lcc"
dobin "${WORKDIR}/${PN}-${SHA}_build/cpp/cpp"
dobin "${WORKDIR}/${PN}-${SHA}_build/etc/bprint"
dobin "${WORKDIR}/${PN}-${SHA}_build/etc/lcc"
dobin "${WORKDIR}/${PN}-${SHA}_build/lburg/lburg"
dobin "${WORKDIR}/${PN}-${SHA}_build/src/rcc"
}
|