mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-01-02 12:02:30 +01:00
Added SweetHome3D 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.3-linux-x64.tgz 71723029 BLAKE2B f520fc5a5faaa2cfc52a0ad083821facc252d2ab845e8a6bbd53e19d5aade0f6c2548f38d7ee10ee21f389a28f8fd145c160ac6cb10f7047a4725414e2724034 SHA512 c28e2cfdd9ab02436e58347180f19f0987100b4ac01b4b8eedec8e9eb706dbe644171ffc61c881e3ed53127832f388d36a0e4a5cf4f440c9bf9bbb3298c34c4c
|
||||
EBUILD sweethome3d-bin-7.3.ebuild 3396 BLAKE2B faec2b8caa2f7173a326c225afe689b53317c65b47c9e596c6611a3e4ff5e70ecad2080d35cffc477c299096ea50edf3e4d6d001a5b02df98ef793e4e413b9cc SHA512 114911e0f6d7c8cbfd9732b96878f48152236f85e3627e1a948f5904d144f1caceb9a093f0267670acfe47b14a350d12a8488f8211a7567f8b6164d3b64a2925
|
||||
107
media-gfx/sweethome3d-bin/sweethome3d-bin-7.3.ebuild
Normal file
107
media-gfx/sweethome3d-bin/sweethome3d-bin-7.3.ebuild
Normal file
@@ -0,0 +1,107 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit desktop
|
||||
|
||||
REAL_PN="SweetHome3D"
|
||||
DESCRIPTION="Sweet Home 3D is a free interior design application/"
|
||||
HOMEPAGE="https://sweethome3d.com"
|
||||
SRC_URI="mirror://sourceforge/sweethome3d/${REAL_PN}-${PV}-linux-x64.tgz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="-gtk-theme"
|
||||
|
||||
DEPEND="virtual/jre"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${REAL_PN}-${PV}"
|
||||
|
||||
src_install() {
|
||||
inst_path="/opt/${REAL_PN}"
|
||||
java_vars=( "-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" )
|
||||
use gtk-theme && java_vars+=( "-Dsun.java2d.xrender=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" )
|
||||
|
||||
insinto "${inst_path}"
|
||||
doins -r *
|
||||
|
||||
# ------------------
|
||||
# make wrapper
|
||||
# NOTE: make_wrapper will insert exec first, so no chance to put env
|
||||
# vairables before, hence manual way of creating it.
|
||||
local tmpwrapper="${T}/tmp.wrapper.${REAL_PN,,}"
|
||||
(
|
||||
echo "#!/bin/sh"
|
||||
echo "export _JAVA_OPTIONS='${java_vars[*]}'"
|
||||
echo "${inst_path}/${REAL_PN}" '"$@"'
|
||||
|
||||
) > "${tmpwrapper}"
|
||||
chmod go+rx "${tmpwrapper}"
|
||||
newbin "${tmpwrapper}" "${REAL_PN,,}"
|
||||
# ------------------
|
||||
|
||||
doicon "${REAL_PN}Icon.png"
|
||||
|
||||
make_desktop_entry "${REAL_PN}" "${REAL_PN}" "${REAL_PN}"
|
||||
|
||||
dodir $inst_path
|
||||
fperms 755 "${inst_path}/${REAL_PN}" \
|
||||
"${inst_path}/${REAL_PN}-Java3D-1_5_2" \
|
||||
"${inst_path}/runtime/bin/java"
|
||||
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# REAL_PN="SweetHome3D"
|
||||
#
|
||||
# DESCRIPTION="Sweet Home 3D is a free interior design application."
|
||||
# HOMEPAGE="https://sweethome3d.com/"
|
||||
# SRC_URI="
|
||||
# amd64? ( mirror://sourceforge/sweethome3d/${REAL_PN}-${PV}-linux-x64.tgz )
|
||||
# x86? ( mirror://sourceforge/sweethome3d/${REAL_PN}-${PV}-linux-x86.tgz )
|
||||
# "
|
||||
# LICENSE="GPL-3"
|
||||
# IUSE="gtk3"
|
||||
# SLOT="0"
|
||||
# KEYWORDS="~amd64 ~x86"
|
||||
#
|
||||
# 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 "${REAL_PN}"{,-Java3D*} || die # upstream-generated wrappers
|
||||
#
|
||||
# # mv "${REAL_PN}Icon.png" "${REAL_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}" )
|
||||
#
|
||||
# use gtk3 && java_vars+=( "-Dawt.useSystemAAFontSettings=gasp -Dswing.aatext=true -Dsun.java2d.xrender=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" )
|
||||
#
|
||||
# insinto "${inst_path}"
|
||||
# doins -r *
|
||||
#
|
||||
# # make_wrapper "${REAL_PN}" "${java_vars[*]} -Xmx2g -classpath \"${clp}\" -Djava.library.path=${inst_path}/lib/java3d-1.6 -Djogamp.gluegen.UseTempJarCache=false -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer com.eteks.sweethome3d.SweetHome3D -open"
|
||||
# make_wrapper "${REAL_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 "${REAL_PN}Icon.png"
|
||||
#
|
||||
# make_desktop_entry "${REAL_PN}" "${REAL_PN}" "${REAL_PN}"
|
||||
#
|
||||
# # dosym "${PN}" /usr/bin/sweethome3d
|
||||
# }
|
||||
Reference in New Issue
Block a user