1 |
commit: 0d88561f6b44b75d68875bc5793c2068293f844f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 09:09:08 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 10:04:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d88561f |
7 |
|
8 |
games-mud/circlemud: port to EAPI 7, drop games.eclass |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
games-mud/circlemud/circlemud-3.1-r1.ebuild | 62 ++++++++++++++++++++++++++++ |
13 |
games-mud/circlemud/circlemud-3.1.ebuild | 63 ----------------------------- |
14 |
2 files changed, 62 insertions(+), 63 deletions(-) |
15 |
|
16 |
diff --git a/games-mud/circlemud/circlemud-3.1-r1.ebuild b/games-mud/circlemud/circlemud-3.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..ff9a32c5494 |
19 |
--- /dev/null |
20 |
+++ b/games-mud/circlemud/circlemud-3.1-r1.ebuild |
21 |
@@ -0,0 +1,62 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="A multi-user dungeon game system server" |
30 |
+HOMEPAGE="https://www.circlemud.org/" |
31 |
+SRC_URI="https://www.circlemud.org/pub/CircleMUD/3.x/circle-${PV}.tar.bz2" |
32 |
+S="${WORKDIR}"/circle-${PV} |
33 |
+ |
34 |
+LICENSE="circlemud" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+ |
38 |
+DEPEND="dev-libs/openssl:0=" |
39 |
+RDEPEND=" |
40 |
+ ${DEPEND} |
41 |
+ acct-group/gamestat |
42 |
+" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ default |
46 |
+ |
47 |
+ cd src || die |
48 |
+ |
49 |
+ touch .accepted || die |
50 |
+ |
51 |
+ sed -i \ |
52 |
+ -e 's:^read.*::' licheck || die |
53 |
+ |
54 |
+ # Now let's rename binaries (too many are very generic) |
55 |
+ sed -i \ |
56 |
+ -e "s:\.\./bin/autowiz:${PN}-autowiz:" limits.c || die |
57 |
+ |
58 |
+ tc-export CC |
59 |
+ eapply "${FILESDIR}"/${P}-ldflags.patch |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ emake -C src |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ local bin |
68 |
+ |
69 |
+ for bin in autowiz delobjs listrent mudpasswd play2to3 purgeplay \ |
70 |
+ shopconv showplay sign split wld2html ; do |
71 |
+ newbin bin/${bin} ${PN}-${bin} |
72 |
+ done |
73 |
+ |
74 |
+ dobin bin/circle |
75 |
+ |
76 |
+ insinto /var/lib/${PN} |
77 |
+ doins -r lib/* |
78 |
+ |
79 |
+ insinto /etc/${PN} |
80 |
+ doins lib/etc/* |
81 |
+ |
82 |
+ dodoc doc/{README.UNIX,*.pdf,*.txt} ChangeLog FAQ README release_notes.${PV}.txt |
83 |
+} |
84 |
|
85 |
diff --git a/games-mud/circlemud/circlemud-3.1.ebuild b/games-mud/circlemud/circlemud-3.1.ebuild |
86 |
deleted file mode 100644 |
87 |
index 0e4c0eb1a25..00000000000 |
88 |
--- a/games-mud/circlemud/circlemud-3.1.ebuild |
89 |
+++ /dev/null |
90 |
@@ -1,63 +0,0 @@ |
91 |
-# Copyright 1999-2019 Gentoo Authors |
92 |
-# Distributed under the terms of the GNU General Public License v2 |
93 |
- |
94 |
-EAPI=5 |
95 |
-inherit eutils games |
96 |
- |
97 |
-DESCRIPTION="a multi-user dungeon game system server" |
98 |
-HOMEPAGE="https://www.circlemud.org/" |
99 |
-SRC_URI="https://www.circlemud.org/pub/CircleMUD/3.x/circle-${PV}.tar.bz2" |
100 |
- |
101 |
-LICENSE="circlemud" |
102 |
-SLOT="0" |
103 |
-KEYWORDS="~amd64 ~x86" |
104 |
-IUSE="" |
105 |
- |
106 |
-DEPEND="dev-libs/openssl:0=" |
107 |
-RDEPEND=${DEPEND} |
108 |
- |
109 |
-S=${WORKDIR}/circle-${PV} |
110 |
- |
111 |
-src_prepare() { |
112 |
- cd src |
113 |
- touch .accepted |
114 |
- sed -i \ |
115 |
- -e 's:^read.*::' licheck || die |
116 |
- |
117 |
- # make circlemud fit into Gentoo nicely |
118 |
- sed -i \ |
119 |
- -e "s:\"lib\":\"${GAMES_DATADIR}/${PN}\":g" \ |
120 |
- -e "s:\(LOGNAME = \)NULL:\1\"${GAMES_LOGDIR}/${PN}.log\":g" \ |
121 |
- config.c || die |
122 |
- sed -i \ |
123 |
- -e "s:etc/:${GAMES_SYSCONFDIR}/${PN}/:g" db.h || die |
124 |
- |
125 |
- # now lets rename binaries (too many are very generic) |
126 |
- sed -i \ |
127 |
- -e "s:\.\./bin/autowiz:${PN}-autowiz:" limits.c || die |
128 |
- epatch "${FILESDIR}"/${P}-ldflags.patch |
129 |
-} |
130 |
- |
131 |
-src_compile() { |
132 |
- emake -C src |
133 |
-} |
134 |
- |
135 |
-src_install() { |
136 |
- local bin |
137 |
- |
138 |
- for bin in autowiz delobjs listrent mudpasswd play2to3 purgeplay \ |
139 |
- shopconv showplay sign split wld2html ; do |
140 |
- newgamesbin bin/${bin} ${PN}-${bin} |
141 |
- done |
142 |
- dogamesbin bin/circle |
143 |
- |
144 |
- dodir "${GAMES_DATADIR}/${PN}" |
145 |
- cp -r lib/* "${D}/${GAMES_DATADIR}/${PN}" || die |
146 |
- |
147 |
- insinto "${GAMES_SYSCONFDIR}/${PN}" |
148 |
- doins lib/etc/* |
149 |
- |
150 |
- dodoc doc/{README.UNIX,*.pdf,*.txt} ChangeLog FAQ README release_notes.${PV}.txt |
151 |
- prepgamesdirs |
152 |
- fperms 770 "${GAMES_SYSCONFDIR}/${PN}/players" |
153 |
-} |