Contents of /smage/trunk/extras/cbindgen/cbindgen-0.9.0-r1.smage2
Parent Directory | Revision Log
Revision 13260 -
(show annotations)
(download)
Thu Jul 11 10:10:41 2019 UTC (5 years, 2 months ago) by niro
File size: 987 byte(s)
Thu Jul 11 10:10:41 2019 UTC (5 years, 2 months ago) by niro
File size: 987 byte(s)
auto added: ver bump to 0.9.0-r1
1 | # $Id$ |
2 | |
3 | PNAME="cbindgen" |
4 | PVER="0.9.0" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="dev-util" |
8 | |
9 | DESCRIPTION="A tool for generating C bindings to rust code. " |
10 | HOMEPAGE="https://github.com/eqrion/cbindgen/" |
11 | |
12 | DEPEND=">= sys-libs/libgcc-8.3" |
13 | SDEPEND=">= sys-libs/libgcc-dev-8.3 |
14 | >= dev-util/cargo-0.36" |
15 | |
16 | SRCFILE="v${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | msetfeature "!check" # no check target in makefile |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | https://github.com/eqrion/${PNAME}/archive/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | ) |
26 | |
27 | UP2SEPERATOR="v" |
28 | UP2DATE="updatecmd https://github.com/eqrion/${PNAME}/releases | highesttarball gz" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fetch cargo crates |
36 | cargo fetch --locked || die |
37 | } |
38 | |
39 | src_compile() |
40 | { |
41 | cd ${SRCDIR} |
42 | cargo build --release --verbose --frozen || die |
43 | } |
44 | |
45 | src_check() |
46 | { |
47 | cd ${SRCDIR} |
48 | cargo test --release --verbose --frozen || die |
49 | } |
50 | |
51 | src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | |
55 | minstallexec target/release/cbindgen || die |
56 | minstalldocs README* || die |
57 | } |