Add sweet home 3d ebuild
This commit is contained in:
2
media-gfx/sweethome3d-bin/Manifest
Normal file
2
media-gfx/sweethome3d-bin/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST SweetHome3D-7.5-linux-x64.tgz 71733932 BLAKE2B 263b3e68c2cd03c17dc4f02af8d2340adb882c66782f3a7d922149b1054e3c61051576fa8389be1b0649c4e3fe4f3cee912c8a6ebbe4afcae0dafa99206e9377 SHA512 b375fa0597ac5c174f9dc6cd0d07d0298077038989e74fdd3a9603708d23b4623fcb09edc716263921ede092d74a5004ad6ea01d5a091f442ee08ed3377f4959
|
||||
DIST SweetHome3D-7.5-linux-x86.tgz 75003636 BLAKE2B 803730cbfe0fca6cddcaa60f85da89daf6393a755e722ba82c61a3903543a7949d699933e51daa8c66cc9dc0d067355a6f07114a15ff92c7e33db004dd13acb7 SHA512 05df13641cee7c10207696979c97b93b4fab91114fa574d8facde3cc693bc796251fbffae48ebd7d288e55a10d02b52de0153f2d436d5abc3042cdad8e860499
|
68
media-gfx/sweethome3d-bin/sweethome3d-bin-7.5.ebuild
Normal file
68
media-gfx/sweethome3d-bin/sweethome3d-bin-7.5.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# Ebuild based on https://data.gpo.zugaina.org/mva/media-gfx/sweethome3d-bin/
|
||||
|
||||
EAPI=8
|
||||
inherit desktop wrapper
|
||||
|
||||
MY_PN="SweetHome3D"
|
||||
|
||||
DESCRIPTION="Sweet Home 3D is a free interior design application."
|
||||
HOMEPAGE="https://sweethome3d.com/"
|
||||
SF_URI="https://downloads.sourceforge.net/${PN//-bin}/${MY_PN}/${MY_PN}-${PV}/${MY_PN}-${PV}-linux"
|
||||
SRC_URI="
|
||||
amd64? ( ${SF_URI}-x64.tgz )
|
||||
x86? ( ${SF_URI}-x86.tgz )
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gtk3"
|
||||
|
||||
RDEPEND="virtual/jre"
|
||||
|
||||
# QA_PREBUILT="*java3d.*.so"
|
||||
|
||||
src_prepare() {
|
||||
rm THIRDPARTY-LICENSE-* LICENSE.TXT COPYING.TXT || die
|
||||
rm -r lib/java3d-* || die # or maybe remove another ones, and keep it?
|
||||
rm -r runtime || die # bundled JRE
|
||||
rm "${MY_PN}"{,-Java3D*} || die # upstream-generated wrappers
|
||||
|
||||
# mv "${MY_PN}Icon.png" "${MY_PN}.png"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
inst_path="/usr/share/${PF}"
|
||||
clp=$(find lib -name '*jar' | xargs | sed -e "s@lib/@${inst_path}/lib/@g" -e "s@ @:@g")
|
||||
java_vars=( "\${JAVA_HOME}/bin/java" "\${_JAVA_OPTIONS}" )
|
||||
|
||||
if use gtk3; then
|
||||
java_vars+=(
|
||||
"-Dawt.useSystemAAFontSettings=gasp"
|
||||
"-Dswing.aatext=true"
|
||||
"-Dsun.java2d.xrender=true"
|
||||
"-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
||||
)
|
||||
fi
|
||||
|
||||
# Only compatible with openjdk>=17 (and also the only way to make it work there)
|
||||
# But OTOH, I don't know how to make it compatible with <17 and >=17 at the same time ????
|
||||
# ref: https://sourceforge.net/p/sweethome3d/bugs/1021/
|
||||
java_vars+=( "--add-opens=java.desktop/sun.awt=ALL-UNNAMED" )
|
||||
|
||||
insinto "${inst_path}"
|
||||
doins -r *
|
||||
|
||||
make_wrapper "${MY_PN}" "${java_vars[*]} -Xmx2g -classpath \"${clp}\" -Djava.library.path=${inst_path}/lib:${inst_path}/lib/yafaray -Djogamp.gluegen.UseTempJarCache=false -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer com.eteks.sweethome3d.SweetHome3D -open"
|
||||
|
||||
doicon "${MY_PN}Icon.png"
|
||||
|
||||
make_desktop_entry "${MY_PN}" "${MY_PN}" "${MY_PN}"
|
||||
|
||||
# dosym "${PN}" /usr/bin/sweethome3d
|
||||
}
|
Reference in New Issue
Block a user