commit: 3484a0edd5c10e16f6dc29856357f21102c920be
Author: Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Sat Dec 13 11:20:03 2025 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Sat Dec 13 11:20:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3484a0ed
media-gfx/oda-file-converter: add 26.10.0.0, drop 23.5.0.0
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
media-gfx/oda-file-converter/Manifest | 2 +-
media-gfx/oda-file-converter/metadata.xml | 8 ++++++
....ebuild => oda-file-converter-26.10.0.0.ebuild} | 32 ++++++++++++++--------
3 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/media-gfx/oda-file-converter/Manifest
b/media-gfx/oda-file-converter/Manifest
index 4d77d4b86e..8c670fea4d 100644
--- a/media-gfx/oda-file-converter/Manifest
+++ b/media-gfx/oda-file-converter/Manifest
@@ -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
diff --git a/media-gfx/oda-file-converter/metadata.xml
b/media-gfx/oda-file-converter/metadata.xml
index eea9f0be13..f91f621fbf 100644
--- a/media-gfx/oda-file-converter/metadata.xml
+++ b/media-gfx/oda-file-converter/metadata.xml
@@ -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>
diff --git a/media-gfx/oda-file-converter/oda-file-converter-23.5.0.0.ebuild
b/media-gfx/oda-file-converter/oda-file-converter-26.10.0.0.ebuild
similarity index 51%
rename from media-gfx/oda-file-converter/oda-file-converter-23.5.0.0.ebuild
rename to media-gfx/oda-file-converter/oda-file-converter-26.10.0.0.ebuild
index 12bfeaeea1..5a43ce255f 100644
--- a/media-gfx/oda-file-converter/oda-file-converter-23.5.0.0.ebuild
+++ b/media-gfx/oda-file-converter/oda-file-converter-26.10.0.0.ebuild
@@ -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