mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
media-libs/admesh: new package
Provides media-gfx/slic3r dependency. Adds 0.98.5 and 9999. Signed-off-by: bakedsnake <bakedsnake@vagrantz.xyz>
This commit is contained in:
4 files changed
+95
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST admesh-0.98.5.tar.gz 367583 BLAKE2B 0c21f35735ec18596a3cb98746a47d98ffd12f04b0cc26e68f5e2c3eb0331037f93a13ccb75544cdadf125990d11a61e838addeadf276596aa5bc79be7e9bda7 SHA512 8d94966caf65ec09a143b0d9ed4a1dce1ccd6dc2281b6da02c620d6f31439c2ce4b6501bfca4392ed96727696df3a15c86890e4dd6fc995bc8cf9d130f25786a
|
||||
@@ -0,0 +1,41 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="CLI and C library for processing triangulated solid meshes"
|
||||
HOMEPAGE="https://admesh.readthedocs.io/"
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
inherit git-r3 cmake
|
||||
EGIT_REPO_URI="https://github.com/admesh/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/admesh/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ "${PV}" != *9999* ]]; then
|
||||
elibtoolize
|
||||
else
|
||||
sed -i "s/cmake_minimum_required(VERSION 3.5)/cmake_minimum_required(VERSION 4.0)/" \
|
||||
CMakeLists.txt || die
|
||||
cmake_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ "${PV}" != *9999* ]]; then
|
||||
default
|
||||
# See: https://bugs.gentoo.org/941097
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
else
|
||||
cmake_src_install
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="CLI and C library for processing triangulated solid meshes"
|
||||
HOMEPAGE="https://admesh.readthedocs.io/"
|
||||
if [[ ${PV} == *9999* ]] ; then
|
||||
inherit git-r3 cmake
|
||||
EGIT_REPO_URI="https://github.com/admesh/${PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/admesh/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ "${PV}" != *9999* ]]; then
|
||||
elibtoolize
|
||||
else
|
||||
sed -i "s/cmake_minimum_required(VERSION 3.5)/cmake_minimum_required(VERSION 4.0)/" \
|
||||
CMakeLists.txt || die
|
||||
cmake_prepare
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [[ "${PV}" != *9999* ]]; then
|
||||
default
|
||||
# See: https://bugs.gentoo.org/941097
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
else
|
||||
cmake_src_install
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>bakedsnake@vagrantz.xyz</email>
|
||||
<name>bakedsnake</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">admesh/admesh</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in new issue
Block a user