summaryrefslogtreecommitdiffstats
path: root/dev-games
diff options
context:
space:
mode:
authorDubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>2024-12-11 17:14:44 -0600
committerDubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com>2024-12-11 17:14:44 -0600
commitc8245c5cc7ff7f36d8d546ccc02817976d59e61d (patch)
tree1945b9036869dcb34e97bd47f78a6398e5dfba68 /dev-games
parent5bd6a41637dcded44fd25dc679729d2e973c518b (diff)
downloadmcdubh-overlay-c8245c5cc7ff7f36d8d546ccc02817976d59e61d.tar.gz
Added libresprite to the overlay!
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/libresprite/Manifest21
-rw-r--r--dev-games/libresprite/libresprite-1.1.ebuild71
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-games/libresprite/Manifest b/dev-games/libresprite/Manifest
new file mode 100644
index 0000000..681bafe
--- /dev/null
+++ b/dev-games/libresprite/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST libresprite-1.1.tar.gz 2162453 BLAKE2B 25ae14f2afa14e3ee02fcea4ac4964f48a7c45de6ea816da084fa0ca14525f37e6e12b103bb1906d38e1f1c8346434356617ce994023500f8fe520f12c48b375 SHA512 c2ecef84db7033833279ff359bfa36922454d2986baf0e7479bb97706ce77d391c04dc1d3a19c19b6d29a73650769586309d112c67cd7ccda1ee51bef9fa1db8
+EBUILD libresprite-1.1.ebuild 1661 BLAKE2B 878f15c18cafa5e94f070b8e80abd46decad1d1e02ea63e0059ba197d249eea577fb5f60caad7baa2d80c09999d7bd16c05e61c1a6e198a29b0e8609ae39f26a SHA512 93134a3cc571a41448cdf84d65ec37b46838ab432052729897d4148a0727a0504a2346584c13ffd76d966f7ec2b43be1053aecee56f8aedbb12ec94ad59a482e
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAEBCAAdFiEEIyrQP4Xa5gZc0gb/uGRTns+fh6IFAmdaHMoACgkQuGRTns+f
+h6LiOw/8Diu/v8TrhRoXCgeFh1/RvT/OQzkIkjsr5+QEw23d9iXbl1Ni3c3sMPUW
+HnqZ7006qKTuledw2OfOw045vT6sAiaz3Ck3spA8K4P5NL+kk4VGhVsuwePmF4ah
+vcPPmrn+R5m8x/E8Y+9bL+yp7xzDNgUmyHtWTQ+V7r/2LC8IP/NyUVnQtGIBUo9a
+UDTYh6FLkp/8BPCz3loWLf5zAenq5NkeOsQdu5Wu07CHcCzxMpjFbct3hzXtQaIN
+E5nXB8b6spbwumEyoxReqlNgkBl5Yw4TlEdiefhCFjy9hSgTuWvytBrMu5vysTWb
+HHV62dD5aoeuT6CIvdFnTvuDdjsWj7krAYe5vH4jFgUwicHw3CkggQ0kCJa55UkA
+XsYnNoCo4v6ZbY3fHhiG1jC86m0ax5dDUVCMWLrpMQCTiXsWe50jadUyCMCxlqZc
+sSoK8Z6SdxyKud0tKsYgy0BQu3pkxboSAoHFY5i4eHppUH9EKdfjzms621Mkx43l
+m3xS7+oXtwJoXP0zeuio2gQ/esp/pgucbmkIubCA4dMsV2vdS7J0e0zrYqONPK3e
+OVC+lJNH30Q1NctXBXk1GaEAMf2V4zLYe4XZc/A7UMzuadIIvsq0AhSRCcunltDV
+hjaN9LixWw/j8PYQdNS0LZ9bXUC+Pr1qvch1iw4MqPpp8JyB3tQ=
+=RalX
+-----END PGP SIGNATURE-----
diff --git a/dev-games/libresprite/libresprite-1.1.ebuild b/dev-games/libresprite/libresprite-1.1.ebuild
new file mode 100644
index 0000000..f37a9ab
--- /dev/null
+++ b/dev-games/libresprite/libresprite-1.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Animated sprite editor & pixel art tool"
+HOMEPAGE="https://libresprite.github.io/#!/"
+SRC_URI="https://github.com/LibreSprite/LibreSprite/releases/download/v1.1/SOURCE.CODE.+.submodules.tar.gz -> ${P}.tar.gz" # We need +submodules
+
+LICENSE="GPL-2 MIT BSD" # TODO: Check if sub-modules contain other LICENSES.
+# third_party/EasyTab - https://unlicense.org
+# third_party/duktape - MIT
+# third_party/modp_b64 - BSD
+# third_party/observable - MIT
+# third_party/qoi - MIT
+# third_party/simpleini - MIT
+SLOT="0"
+KEYWORDS="~amd64" # TODO: AFTER SUCCESS: test for ~x86 ~arm ~arm64 ~riscv"
+IUSE="+sudo -doas" # TODO: Check out whats optional.
+RESTRICT="test"
+
+REQUIRED_USE="|| ( sudo doas )"
+
+RDEPEND="
+dev-build/cmake
+net-misc/curl
+media-libs/freetype
+media-libs/giflib
+dev-cpp/gtest
+x11-libs/pixman
+media-libs/libpng
+media-libs/libsdl2
+media-libs/sdl2-image[png,webp]
+dev-libs/tinyxml2
+net-libs/nodejs
+dev-build/ninja
+sys-libs/zlib
+app-arch/libarchive
+ sudo? ( app-admin/sudo )
+ doas? ( app-admin/doas )
+"
+
+src_unpack() {
+ mkdir ${P}/
+ unpack ${P}.tar.gz
+ mkdir build/
+}
+
+src_compile() {
+ insinto build
+ cmake -DCMAKE_INSTALL_PREFIX="/usr" -G Ninja ..
+ ninja libresprite
+}
+
+src_install() {
+ newbin bin/libresprite libresprite
+ # PERM ISSUES for /usr/share/
+ if use doas; then
+ doas mkdir -p /usr/share/libresprite/data/
+ doas mv bin/data/ /usr/share/libresprite/data
+ fi
+ if sudo; then
+ sudo mkdir -p /usr/share/libresprite/data/
+ sudo mv bin/data/ /usr/share/libresprite/data
+ fi
+}
+
+pkg_postinst() {
+ update-mime-database /usr/share/mime/
+}
+