commit:     cbff1ace412223d896f439b7f07183003aebc564
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Fri Jun 11 07:26:32 2021 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Fri Jun 11 07:26:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cbff1ace

media-gfx/oda-file-converter: new package

For converting between different versions of .dwg and .dxf

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 media-gfx/oda-file-converter/Manifest              |  1 +
 media-gfx/oda-file-converter/metadata.xml          | 21 +++++++++
 .../oda-file-converter-22.5.0.0.ebuild             | 50 ++++++++++++++++++++++
 3 files changed, 72 insertions(+)

diff --git a/media-gfx/oda-file-converter/Manifest 
b/media-gfx/oda-file-converter/Manifest
new file mode 100644
index 000000000..534541321
--- /dev/null
+++ b/media-gfx/oda-file-converter/Manifest
@@ -0,0 +1 @@
+DIST ODAFileConverter_QT5_lnxX64_7.2dll_22.5.deb 26269172 BLAKE2B 
5676736a9acb21794d951f5737231f14970bac4c4d50156e9e4b5972f0f2eebc9b5ea547a12e2f6bece930164f836395d46664e434a0fc552ae22f9bb7306dfd
 SHA512 
64d034011239943cb3bae1bd11111c7abe294cee12fb4f3dec4ae6447b742d1149add01fccad7e7f51fd11b2afcf9040a6575f4e669df6225a4975786405131b

diff --git a/media-gfx/oda-file-converter/metadata.xml 
b/media-gfx/oda-file-converter/metadata.xml
new file mode 100644
index 000000000..b275135fb
--- /dev/null
+++ b/media-gfx/oda-file-converter/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Huang Rui</name>
+       </maintainer>
+       <longdescription lang="en">
+       For converting between different versions of .dwg and .dxf
+       ODA File Converter application features a graphical interface and a
+       command-line interface.
+       Upon execution, the application identifies all files in the specified
+       source directory that match the specified filter, then loads and saves 
each
+       of these files to the specified output directory as the specified output
+       version/type.
+       If the audit flag is enabled, an audit/repair operation will be applied 
to
+       each file as it is loaded.
+       If the recursive flag is enabled, subdirectories within the source
+       directory will be processed recursively.
+       </longdescription>
+</pkgmetadata>

diff --git a/media-gfx/oda-file-converter/oda-file-converter-22.5.0.0.ebuild 
b/media-gfx/oda-file-converter/oda-file-converter-22.5.0.0.ebuild
new file mode 100644
index 000000000..e2cde787b
--- /dev/null
+++ b/media-gfx/oda-file-converter/oda-file-converter-22.5.0.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PV="$(ver_cut 1-2)"
+
+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_7.2dll_${MY_PV}.deb";
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+
+RDEPEND="
+       dev-qt/qtcore
+       x11-themes/hicolor-icon-theme
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="dev-util/patchelf"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="*"
+QA_DESKTOP_FILE="usr/share/applications/ODAFileConverter.*\\.desktop"
+
+src_compile() {
+       patchelf --set-rpath \
+               "/usr/bin/ODAFileConverter_${PV}" \
+               "usr/bin/ODAFileConverter_${PV}/ODAFileConverter" \
+               || die "Failed to fix insecure RPATH"
+}
+
+src_install() {
+       exeinto /usr/bin
+       doexe usr/bin/ODAFileConverter
+       exeinto /usr/bin/ODAFileConverter_${PV}
+       doexe usr/bin/ODAFileConverter_${PV}/*
+       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
+       doicon -s 64 usr/share/icons/hicolor/64x64/apps/ODAFileConverter.png
+       doicon -s 128 usr/share/icons/hicolor/128x128/apps/ODAFileConverter.png
+}
\ No newline at end of file

Reply via email to