Diff chibi-0.10.0 with a chibi-9999
| /usr/portage/dev-scheme/chibi/chibi-9999.ebuild 2024-07-02 13:51:45.669851500 +0300 | ||
|---|---|---|
| 1 |
# Copyright 1999-2022 Gentoo Authors |
|
| 1 |
# Copyright 1999-2024 Gentoo Authors |
|
| 2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
MY_PN=${PN}-scheme
|
|
| 7 |
MY_PV=0.10 # Release "0.10.0" tagged as "0.10" |
|
| 8 |
MY_P=${MY_PN}-${MY_PV}
|
|
| 6 |
REAL_PN="${PN}-scheme"
|
|
| 7 |
REAL_PV="$(ver_cut 1-2)" |
|
| 8 |
REAL_P="${REAL_PN}-${REAL_PV}"
|
|
| 9 | 9 | |
| 10 | 10 |
inherit toolchain-funcs |
| 11 | 11 | |
| 12 | 12 |
DESCRIPTION="Minimal Scheme implementation for use as an extension language" |
| 13 | 13 |
HOMEPAGE="http://synthcode.com/scheme/chibi/" |
| 14 | 14 | |
| 15 |
if [[ ${PV} == *9999* ]] ; then
|
|
| 15 |
if [[ "${PV}" == *9999* ]] ; then
|
|
| 16 | 16 |
inherit git-r3 |
| 17 |
EGIT_REPO_URI="https://github.com/ashinn/${MY_PN}.git"
|
|
| 17 | ||
| 18 |
EGIT_REPO_URI="https://github.com/ashinn/${REAL_PN}.git"
|
|
| 18 | 19 |
else |
| 19 |
SRC_URI="https://github.com/ashinn/${MY_PN}/archive/${MY_PV}.tar.gz
|
|
| 20 |
-> ${P}.tar.gz"
|
|
| 20 |
SRC_URI="https://github.com/ashinn/${REAL_PN}/archive/${REAL_PV}.tar.gz
|
|
| 21 |
-> ${P}.tar.gz"
|
|
| 22 |
S="${WORKDIR}/${REAL_P}"
|
|
| 23 | ||
| 21 | 24 |
KEYWORDS="~amd64 ~x86" |
| 22 |
S="${WORKDIR}"/${MY_P}
|
|
| 23 | 25 |
fi |
| 24 | 26 | |
| 25 | 27 |
LICENSE="BSD" |
| ... | ... | |
| 39 | 41 |
src_install() {
|
| 40 | 42 |
default |
| 41 | 43 | |
| 42 |
dosym ${MY_PN} /usr/bin/${PN}
|
|
| 44 |
dosym "${REAL_PN}" "/usr/bin/${PN}"
|
|
| 43 | 45 |
} |