summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-10 15:52:45 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-10 15:52:45 +0100
commit4a3217e871e6e268100e2eb745b98ae72a547226 (patch)
tree60ea90beb88609ebd819caeb8e2056093f992853 /dev-lang/pico8
parentlicenses: Add PICO-8 license for dev-lang/pico8 (diff)
downloadgentoo-4a3217e871e6e268100e2eb745b98ae72a547226.tar.gz
gentoo-4a3217e871e6e268100e2eb745b98ae72a547226.tar.bz2
gentoo-4a3217e871e6e268100e2eb745b98ae72a547226.zip
dev-lang/pico8: New package at version 0.2.4b
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-lang/pico8')
-rw-r--r--dev-lang/pico8/Manifest3
-rw-r--r--dev-lang/pico8/metadata.xml18
-rw-r--r--dev-lang/pico8/pico8-0.2.4b.ebuild56
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-lang/pico8/Manifest b/dev-lang/pico8/Manifest
new file mode 100644
index 000000000000..830f98f0d49d
--- /dev/null
+++ b/dev-lang/pico8/Manifest
@@ -0,0 +1,3 @@
+DIST pico-8_0.2.4b_amd64.zip 10451591 BLAKE2B 7ed19ba04aac5626c4c6990cf6b33e2fa3724c49918bc49b1a5e561f681827d867be32cd6aadb5ad5f8715266e1fb887f0d7003744bcb9ae46e11e6eef070ef3 SHA512 f618749f1ae558503eeda7c7fba515fb106258e78feb9088751b952fac603e14b54b913f92a2a7898f0d2c039e208e5c8b6354a1c8587cc9471997fe2a1d10d7
+DIST pico-8_0.2.4b_i386.zip 9756611 BLAKE2B 9074915f4a27abe3bb68b1327c778a2ce74ce91feda27cc07df2198b202bf2b3750c73fbf38db15b12adaef598ae7038b06419ffae99bad91a015c01e27e7ee2 SHA512 2364700713d3d3cdff5e651ce8f42761b40163da1a77c0c47671fa3ffdceaaf2d81c3ef79d7d8125c100224c2d1219d946f4e46b2ce8a7efece7239398f86de0
+DIST pico-8_0.2.4b_raspi.zip 13972213 BLAKE2B 70ce42c58e2551fa79c2fe3a55622b3ab6bf4657202821117d075f330fea372a4d280b0b982d17cef199013194eaf6f29c9b40f048bf9ab44540697b52c66306 SHA512 7fbe5288dedea97f181e662cffc5c6059e9fc9aa2dd652677df170cbafb9487898b82a1ff7b84547942ba592edae02b8f649c94e0cb95850b6494d1f5d841006
diff --git a/dev-lang/pico8/metadata.xml b/dev-lang/pico8/metadata.xml
new file mode 100644
index 000000000000..c2eb12510aed
--- /dev/null
+++ b/dev-lang/pico8/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ <name>James Le Cuirot</name>
+ </maintainer>
+ <longdescription>
+ PICO-8 is a fantasy console for making, sharing and playing tiny games
+ and other computer programs. When you turn it on, the machine greets you
+ with a shell for typing in Lua programs and provides simple built-in
+ tools for creating sprites, maps and sound.
+
+ The harsh limitations of PICO-8 are carefully chosen to be fun to work
+ with, encourage small but expressive designs and hopefully to give
+ PICO-8 cartridges their own particular look and feel.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-lang/pico8/pico8-0.2.4b.ebuild b/dev-lang/pico8/pico8-0.2.4b.ebuild
new file mode 100644
index 000000000000..e1413e0112f8
--- /dev/null
+++ b/dev-lang/pico8/pico8-0.2.4b.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop xdg
+
+MY_PN="pico-8"
+DESCRIPTION="Fantasy console for making, sharing and playing tiny games and other computer programs"
+HOMEPAGE="https://lexaloffle.itch.io/pico-8"
+SRC_URI="
+ amd64? ( ${MY_PN}_${PV}_amd64.zip )
+ arm? ( ${MY_PN}_${PV}_raspi.zip )
+ arm64? ( ${MY_PN}_${PV}_raspi.zip )
+ x86? ( ${MY_PN}_${PV}_i386.zip )
+"
+LICENSE="${MY_PN^^}"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
+RESTRICT="bindist fetch"
+
+RDEPEND="
+ media-libs/libsdl2[haptic,joystick,sound,video]
+ net-misc/wget
+"
+
+BDEPEND="app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}"
+
+DIR="/opt/${PN}"
+QA_PREBUILT="${DIR}/${PN}"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${A} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to your distfiles directory."
+}
+
+src_install() {
+ exeinto "${DIR}"
+ insinto "${DIR}"
+
+ case ${ARCH} in
+ amd64|arm) newexe ${PN}_dyn ${PN} ;;
+ arm64) newexe ${PN}_64 ${PN} ;;
+ x86) newexe ${PN}_32bit_dyn ${PN} ;;
+ esac
+
+ doins ${PN}.dat
+ dodoc ${MY_PN}_manual.txt
+
+ dosym ../..${DIR}/${PN} /usr/bin/${PN}
+ doicon -s 128 lexaloffle-${PN}.png
+ make_desktop_entry ${PN} ${MY_PN^^} lexaloffle-${PN}
+}