diff options
author | 2024-06-16 21:46:59 -0500 | |
---|---|---|
committer | 2024-06-16 21:46:59 -0500 | |
commit | 3d18c2dae4661df09353f91f946099cdd5bbaef9 (patch) | |
tree | d03ec0d2f7bdcec193f48973b97f095daff7b149 | |
parent | app-containers/amazon-ecr-credential-helper: update Manifest (diff) | |
download | sattvik-3d18c2dae4661df09353f91f946099cdd5bbaef9.tar.gz sattvik-3d18c2dae4661df09353f91f946099cdd5bbaef9.tar.bz2 sattvik-3d18c2dae4661df09353f91f946099cdd5bbaef9.zip |
media-gfx/wings: new package, add 2.2.6.1
Signed-off-by: Quetzaly Solano Gómez <gentoo@sattvik.com>
-rw-r--r-- | media-gfx/wings/Manifest | 5 | ||||
-rw-r--r-- | media-gfx/wings/files/wings-2.2.6.1-erlang-25-fix.patch | 32 | ||||
-rw-r--r-- | media-gfx/wings/files/wings.sh-r1 | 4 | ||||
-rw-r--r-- | media-gfx/wings/metadata.xml | 18 | ||||
-rw-r--r-- | media-gfx/wings/wings-2.2.6.1.ebuild | 58 |
5 files changed, 117 insertions, 0 deletions
diff --git a/media-gfx/wings/Manifest b/media-gfx/wings/Manifest new file mode 100644 index 0000000..5d001ee --- /dev/null +++ b/media-gfx/wings/Manifest @@ -0,0 +1,5 @@ +AUX wings-2.2.6.1-erlang-25-fix.patch 899 BLAKE2B 74583c9dbb3186be01cb5f73d6ae67c2bdb7af6a76a896ff86a4774055f805671e232cd97c67b665cf56f5a9e964a82a5a5bc4a81cd663ec6040e8477a181a1e SHA512 e2e71958b90fbd6c6bbbe36406baefe1e3d570030021d1b0bdac364a5327ad1f99b414c25c09801723b8caaae353d7f2dc5adaa3710edc6a5fc2ec21b1707d07 +AUX wings.sh-r1 181 BLAKE2B d892abf053f7f0039e50057869a4a0a26438f7312dca62561fc22280b2341621e17f13c97e7031072b242db42c533f4012b21ac46645cf32e121e5aad1884774 SHA512 739b8e68a1b47a3f4adbff8a1f34b713d7b0ac2d8103d85d3fdd6020bf08e81c231d210239c140d23e1dd135ff7122bfd43327a27585a333eafab473ea1480df +DIST wings-2.2.6.1.tar.bz2 3266532 BLAKE2B a3ec86925632df7d231d620a47841781f8b2e66a50d13857c57fa6389890e7a03fed8bf5e0d09b03de00d6360ee0e4129a4178aec34270367879890f9430c208 SHA512 dba4b189c80180533b7a6c10be5c236a4a9fdacaa7dc491a0d1892149f7a75e636778acc11e38ef82a06718ae705e640da2e1618ec655828d2056e6b3864aba4 +EBUILD wings-2.2.6.1.ebuild 1211 BLAKE2B 60ee94f671c7f4584dde3dc39834cf3ed6e46c610871036bba2a8d506514f1d05cbe7ceddf24b707f1cba5d19755006d903b81f321542546b5b88b3eb9707899 SHA512 6eeab8e8ee9fff1b2fb993bec2b69d212fcdcdd1135d93a8e6a83f0e99fc4005cf37d23957dd13009b03e8818df45041cf9eb1b98db119ddf112367faab703bb +MISC metadata.xml 568 BLAKE2B aa2315a1a8ac463ef344365b2273b5f54c4aa5df6239c412aea142f910123aee2dac95bc606a1bde609413475e93b17305b03b64bed320aeb3e93d7421b815ec SHA512 969a180e5b170e8eb27fcb971e320c838610b462ea42a7b1b8d758c084a81658d2d8777aa0d885881388942cbf2d66eddaeacb09346e09b55c0623ce5f688e46 diff --git a/media-gfx/wings/files/wings-2.2.6.1-erlang-25-fix.patch b/media-gfx/wings/files/wings-2.2.6.1-erlang-25-fix.patch new file mode 100644 index 0000000..605cf53 --- /dev/null +++ b/media-gfx/wings/files/wings-2.2.6.1-erlang-25-fix.patch @@ -0,0 +1,32 @@ +From 94b3a3c6a0cfdcdbd98edce055d5c83ecb361f37 Mon Sep 17 00:00:00 2001 +From: acxz <17132214+acxz@users.noreply.github.com> +Date: Thu, 4 Aug 2022 20:10:53 -0400 +Subject: [PATCH] ifndef `wxID_OSX_*` for erlang 25.0 + +--- + src/wings_frame.erl | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/wings_frame.erl b/src/wings_frame.erl +index f6c13c71c..3ec6bb837 100644 +--- a/src/wings_frame.erl ++++ b/src/wings_frame.erl +@@ -37,10 +37,18 @@ + -define(IS_SPLIT(WinProp), (element(1, WinProp) =:= split + orelse element(1, WinProp) =:= split_rev)). + ++-ifndef(wxID_OSX_HIDE). + -define(wxID_OSX_HIDE, 5250). ++-endif. ++-ifndef(wxID_OSX_HIDEOTHERS). + -define(wxID_OSX_HIDEOTHERS, 5251). ++-endif. ++-ifndef(wxID_OSX_SHOWALL). + -define(wxID_OSX_SHOWALL, 5252). ++-endif. ++-ifndef(wxID_OSX_MENU_LAST). + -define(wxID_OSX_MENU_LAST, 5255). ++-endif. + + %% API %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + diff --git a/media-gfx/wings/files/wings.sh-r1 b/media-gfx/wings/files/wings.sh-r1 new file mode 100644 index 0000000..9cf1f26 --- /dev/null +++ b/media-gfx/wings/files/wings.sh-r1 @@ -0,0 +1,4 @@ +#!/bin/sh +ESDL_ROOT="/usr/lib/erlang/lib/esdl" +WINGS_ROOT="/usr/lib/erlang/lib/wings" +exec erl -smp enable -noshell -pa $ESDL_ROOT/ebin $WINGS_ROOT/ebin -run wings_start start_halt diff --git a/media-gfx/wings/metadata.xml b/media-gfx/wings/metadata.xml new file mode 100644 index 0000000..105e80f --- /dev/null +++ b/media-gfx/wings/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-needed --> + <longdescription> + Wings 3D is a polygon mesh modeler inspired by Nendo and + Mirai from Izware. + + It is possible to assign materials, vertex color, UV + coordinates and textures, but there will be improvements + in those features before Wings goes 1.0. + + There is no support in Wings for doing animations. + </longdescription> + <upstream> + <remote-id type="sourceforge">wings</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/wings/wings-2.2.6.1.ebuild b/media-gfx/wings/wings-2.2.6.1.ebuild new file mode 100644 index 0000000..7bfeaef --- /dev/null +++ b/media-gfx/wings/wings-2.2.6.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Wings 3D is an advanced subdivision modeler" +HOMEPAGE="http://www.wings3d.com/" +SRC_URI="https://downloads.sourceforge.net/wings/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=" + >dev-lang/erlang-21[wxwidgets] + <dev-lang/erlang-27 + dev-libs/cl + media-libs/glu + media-libs/libsdl[opengl] + virtual/opengl +" +DEPEND=" + ${RDEPEND} +" +PATCHES=" + ${FILESDIR}/wings-2.2.6.1-erlang-25-fix.patch +" + +src_prepare() { + sed -i -e 's# -Werror##g;s# -O3##g' $(find -name Makefile) || die + default +} + +src_compile() { + export ERL_PATH="/usr/$(get_libdir)/erlang/lib/" + tc-export CC + # Work around parallel make issues + # Set ER_LIBS to the top source directory + emake vsn.mk + for subdir in intl_tools e3d src plugins_src icons; do + emake -C ${subdir} opt ERL_LIBS="${S}" + done + default +} + +src_install() { + WINGS_PATH=${ERL_PATH}/${P} + dodir ${WINGS_PATH} + + find -name 'Makefile*' -exec rm -f '{}' \; + + insinto ${WINGS_PATH} + doins -r e3d ebin icons plugins priv psd shaders src textures tools + + newbin "${FILESDIR}"/wings.sh-r1 wings + dodoc AUTHORS README +} |