mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
media-gfx/oda-file-converter: add 26.10.0.0, drop 23.5.0.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST ODAFileConverter_QT5_lnxX64_8.3dll_23.5.deb 47326628 BLAKE2B 4f88c987427848d79d9f9bf59f230ff3a9bad654fe842f5d7c18ac36688e4fc9633b9d390e092be29458252dab920c957dc4b410c6a505a1cdd3f97deb07ddee SHA512 2a0e3b4cbbe227d98886307ec4db8aca1ab91f1adf6023a09dbd64d1278691c5bdb51bd3931511bd0c838c86a67a2d9a80abcc8a9ec82244851a26d9ca07ed49
|
||||
DIST oda-file-converter-26.10.0.0.deb 57050484 BLAKE2B 01808721e7203a4bfb63d61588b53aa4a2bc550a8f029dfb6c74694c9de47555ec025885ea35287f1052e7ba53769783f5e14233c4321085d3d884b9b3810d4e SHA512 5dd0890a7c9ab35da264a2f81972480ab29441a44179050e908646646539239c90c458e98a205a80afe3901688c4ead7f455064773fbc0d8a4265f33ed863c49
|
||||
|
||||
@@ -18,4 +18,12 @@
|
||||
If the recursive flag is enabled, subdirectories within the source
|
||||
directory will be processed recursively.
|
||||
</longdescription>
|
||||
<longdescription lang="zh">
|
||||
ODA File Converter 用于在不同版本的 .dwg 和 .dxf 文件之间进行转换。
|
||||
该应用程序提供图形界面和命令行界面。
|
||||
执行时,应用程序会识别指定源目录中所有匹配指定过滤器的文件,
|
||||
然后将每个文件加载并保存到指定的输出目录,转换为指定的输出版本/类型。
|
||||
如果启用审核标志,将在加载每个文件时执行审核/修复操作。
|
||||
如果启用递归标志,将递归处理源目录中的子目录。
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -9,8 +9,8 @@ inherit desktop unpacker xdg
|
||||
|
||||
DESCRIPTION="For converting between different versions of .dwg and .dxf"
|
||||
HOMEPAGE="https://www.opendesign.com"
|
||||
SRC_URI="https://download.opendesign.com/guestfiles/Demo/ODAFileConverter_QT5_lnxX64_8.3dll_${MY_PV}.deb"
|
||||
|
||||
SRC_URI="https://www.opendesign.com/guestfiles/get?filename=ODAFileConverter_QT6_lnxX64_8.3dll_${MY_PV}.deb -> ${P}.deb"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="all-rights-reserved"
|
||||
@@ -18,9 +18,7 @@ SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtbase:6[gui,widgets]
|
||||
x11-themes/hicolor-icon-theme
|
||||
"
|
||||
|
||||
@@ -32,18 +30,30 @@ QA_PREBUILT="*"
|
||||
QA_DESKTOP_FILE="usr/share/applications/ODAFileConverter.*\\.desktop"
|
||||
|
||||
src_compile() {
|
||||
# Fix RPATH to point to the FHS-compliant installation directory
|
||||
patchelf --set-rpath \
|
||||
"/usr/bin/ODAFileConverter_${PV}" \
|
||||
"/opt/ODAFileConverter" \
|
||||
"usr/bin/ODAFileConverter_${PV}/ODAFileConverter" \
|
||||
|| die "Failed to fix insecure RPATH"
|
||||
rm -rf usr/bin/ODAFileConverter_${PV}/qt.conf || die "Failed to fix qt.conf"
|
||||
# Remove bundled qt.conf to use system Qt
|
||||
rm -f "usr/bin/ODAFileConverter_${PV}/qt.conf" || die "Failed to remove qt.conf"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin
|
||||
doexe usr/bin/ODAFileConverter
|
||||
exeinto /usr/bin/ODAFileConverter_${PV}
|
||||
doexe usr/bin/ODAFileConverter_${PV}/*
|
||||
# Install main application files to /opt (FHS-compliant for self-contained binary packages)
|
||||
insinto /opt/ODAFileConverter
|
||||
doins -r "usr/bin/ODAFileConverter_${PV}"/*
|
||||
|
||||
# Mark executables
|
||||
fperms 0755 /opt/ODAFileConverter/ODAFileConverter
|
||||
|
||||
# Create wrapper script in /usr/bin
|
||||
newbin "${FILESDIR}"/ODAFileConverter ODAFileConverter
|
||||
|
||||
# Create symlink for FreeCAD compatibility (auto-detects by "TeighaFileConverter" name)
|
||||
dosym ODAFileConverter /usr/bin/TeighaFileConverter
|
||||
|
||||
# Install desktop file and icons
|
||||
domenu usr/share/applications/*.desktop
|
||||
doicon -s 16 usr/share/icons/hicolor/16x16/apps/ODAFileConverter.png
|
||||
doicon -s 32 usr/share/icons/hicolor/32x32/apps/ODAFileConverter.png
|
||||
Reference in New Issue
Block a user