Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-scheme/guile-colorized/
Date: Mon, 01 Feb 2021 17:15:43
Message-Id: 1612199734.5dcc4c2086d36d6b10c79e3162d5dc342d33f8d2.xgqt@gentoo
1 commit: 5dcc4c2086d36d6b10c79e3162d5dc342d33f8d2
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Mon Feb 1 17:15:34 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> protonmail <DOT> com>
5 CommitDate: Mon Feb 1 17:15:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5dcc4c20
7
8 dev-scheme/guile-colorized: new pkg; add 20191205 and 99999999
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 dev-scheme/guile-colorized/Manifest | 1 +
14 .../guile-colorized-20191205.ebuild | 42 ++++++++++++++++++++++
15 .../guile-colorized-99999999.ebuild | 42 ++++++++++++++++++++++
16 dev-scheme/guile-colorized/metadata.xml | 15 ++++++++
17 4 files changed, 100 insertions(+)
18
19 diff --git a/dev-scheme/guile-colorized/Manifest b/dev-scheme/guile-colorized/Manifest
20 new file mode 100644
21 index 00000000..3573fdb7
22 --- /dev/null
23 +++ b/dev-scheme/guile-colorized/Manifest
24 @@ -0,0 +1 @@
25 +DIST guile-colorized-20191205.tar.bz2 15496 BLAKE2B a85fc44c3b6b8433362197a4f1da216ea99793673ee4592e6ea32178d2952d0f43f5a4e79304185d0c67b6dee668bf52d53970df97954a37650cd8b7770e7abd SHA512 4cd9833c70debf0086ba69252e1fb8b9fc33707ec1f3bb6dfb144d5a35db6f38e3af585cbc889936c8ebb38dea0f8808f483bd51ed1722c9b9df857d31a7cec7
26
27 diff --git a/dev-scheme/guile-colorized/guile-colorized-20191205.ebuild b/dev-scheme/guile-colorized/guile-colorized-20191205.ebuild
28 new file mode 100644
29 index 00000000..a3759bbc
30 --- /dev/null
31 +++ b/dev-scheme/guile-colorized/guile-colorized-20191205.ebuild
32 @@ -0,0 +1,42 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DESCRIPTION="Colorized REPL for GNU Guile"
39 +HOMEPAGE="https://gitlab.com/NalaGinrut/guile-colorized/"
40 +
41 +if [[ "${PV}" == *9999* ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://gitlab.com/NalaGinrut/${PN}.git"
44 +else
45 + # Latest release (before this commit from 2019) was in 2015
46 + COMMIT_SHA="1625a79f0e31849ebd537e2a58793fb45678c58f"
47 + SRC_URI="https://gitlab.com/NalaGinrut/${PN}/-/archive/${COMMIT_SHA}.tar.bz2 -> ${P}.tar.bz2"
48 + KEYWORDS="~amd64"
49 + S="${WORKDIR}/${PN}-${COMMIT_SHA}"
50 +fi
51 +
52 +LICENSE="GPL-3"
53 +SLOT="0"
54 +
55 +DEPEND="
56 + >=dev-scheme/guile-2.0.9
57 +"
58 +RDEPEND="${DEPEND}"
59 +
60 +DOCS=( README.md )
61 +
62 +src_prepare() {
63 + default
64 +
65 + find "${S}" -name "*.scm" -exec touch {} + || die
66 +}
67 +
68 +src_install() {
69 + einstalldocs
70 +
71 + local loadpath=$(guile -c '(display (string-append (car %load-path) "/ice-9"))')
72 + mkdir -p "${D}${loadpath}"
73 + emake TARGET="${D}${loadpath}" install
74 +}
75
76 diff --git a/dev-scheme/guile-colorized/guile-colorized-99999999.ebuild b/dev-scheme/guile-colorized/guile-colorized-99999999.ebuild
77 new file mode 100644
78 index 00000000..a3759bbc
79 --- /dev/null
80 +++ b/dev-scheme/guile-colorized/guile-colorized-99999999.ebuild
81 @@ -0,0 +1,42 @@
82 +# Copyright 1999-2021 Gentoo Authors
83 +# Distributed under the terms of the GNU General Public License v2
84 +
85 +EAPI=7
86 +
87 +DESCRIPTION="Colorized REPL for GNU Guile"
88 +HOMEPAGE="https://gitlab.com/NalaGinrut/guile-colorized/"
89 +
90 +if [[ "${PV}" == *9999* ]]; then
91 + inherit git-r3
92 + EGIT_REPO_URI="https://gitlab.com/NalaGinrut/${PN}.git"
93 +else
94 + # Latest release (before this commit from 2019) was in 2015
95 + COMMIT_SHA="1625a79f0e31849ebd537e2a58793fb45678c58f"
96 + SRC_URI="https://gitlab.com/NalaGinrut/${PN}/-/archive/${COMMIT_SHA}.tar.bz2 -> ${P}.tar.bz2"
97 + KEYWORDS="~amd64"
98 + S="${WORKDIR}/${PN}-${COMMIT_SHA}"
99 +fi
100 +
101 +LICENSE="GPL-3"
102 +SLOT="0"
103 +
104 +DEPEND="
105 + >=dev-scheme/guile-2.0.9
106 +"
107 +RDEPEND="${DEPEND}"
108 +
109 +DOCS=( README.md )
110 +
111 +src_prepare() {
112 + default
113 +
114 + find "${S}" -name "*.scm" -exec touch {} + || die
115 +}
116 +
117 +src_install() {
118 + einstalldocs
119 +
120 + local loadpath=$(guile -c '(display (string-append (car %load-path) "/ice-9"))')
121 + mkdir -p "${D}${loadpath}"
122 + emake TARGET="${D}${loadpath}" install
123 +}
124
125 diff --git a/dev-scheme/guile-colorized/metadata.xml b/dev-scheme/guile-colorized/metadata.xml
126 new file mode 100644
127 index 00000000..7719e74f
128 --- /dev/null
129 +++ b/dev-scheme/guile-colorized/metadata.xml
130 @@ -0,0 +1,15 @@
131 +<?xml version="1.0" encoding="UTF-8"?>
132 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
133 +<pkgmetadata>
134 + <maintainer type="person">
135 + <email>xgqt@××××××××××.com</email>
136 + <name>Maciej Barć</name>
137 + </maintainer>
138 + <longdescription lang="en">
139 + colorized REPL for GNU Guile
140 + NOTE: Now guile-colorized only support Guile-2.0.9 or higher!
141 + </longdescription>
142 + <upstream>
143 + <remote-id type="gitlab">NalaGinrut/guile-colorized</remote-id>
144 + </upstream>
145 +</pkgmetadata>