mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-27 07:23:30 +01:00
Compare commits
4 Commits
27154e88c7
...
cdbf4f2645
| Author | SHA1 | Date | |
|---|---|---|---|
| cdbf4f2645 | |||
| 2ab1930959 | |||
| 1af2fd581e | |||
| d642a55c66 |
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 1431 BLAKE2B 503cacdd69e6cf75f7308122715f616061fe9168391c0b53af0c66fc95e4bf32d8bbdbf11d46e55eee2738272778471e8891a4cbba1bc16198c0f78e7819f521 SHA512 756bbf01a652b8f7051819b76841dc6dc9977db70ab3a00be965af59d10bd6875355631026eb0eb9a75fa402638a14a6e6a19319fc2ab366de0761bc38983e6f
|
||||
58
media-gfx/sweethome3d-bin/sweethome3d-bin-7.3.ebuild
Normal file
58
media-gfx/sweethome3d-bin/sweethome3d-bin-7.3.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# 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}"
|
||||
(
|
||||
exeopts -m 0755
|
||||
exeinto "/opt/bin"
|
||||
newexe "${tmpwrapper}" "${REAL_PN,,}"
|
||||
) || die
|
||||
# ------------------
|
||||
|
||||
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"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user