Gentoo Archives: gentoo-commits

From: Rui Huang <vowstar@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-gfx/oda-file-converter/
Date: Fri, 11 Jun 2021 07:26:47
Message-Id: 1623396392.cbff1ace412223d896f439b7f07183003aebc564.vowstar@gentoo
1 commit: cbff1ace412223d896f439b7f07183003aebc564
2 Author: Huang Rui <vowstar <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 11 07:26:32 2021 +0000
4 Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
5 CommitDate: Fri Jun 11 07:26:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cbff1ace
7
8 media-gfx/oda-file-converter: new package
9
10 For converting between different versions of .dwg and .dxf
11
12 Package-Manager: Portage-3.0.19, Repoman-3.0.3
13 Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
14
15 media-gfx/oda-file-converter/Manifest | 1 +
16 media-gfx/oda-file-converter/metadata.xml | 21 +++++++++
17 .../oda-file-converter-22.5.0.0.ebuild | 50 ++++++++++++++++++++++
18 3 files changed, 72 insertions(+)
19
20 diff --git a/media-gfx/oda-file-converter/Manifest b/media-gfx/oda-file-converter/Manifest
21 new file mode 100644
22 index 000000000..534541321
23 --- /dev/null
24 +++ b/media-gfx/oda-file-converter/Manifest
25 @@ -0,0 +1 @@
26 +DIST ODAFileConverter_QT5_lnxX64_7.2dll_22.5.deb 26269172 BLAKE2B 5676736a9acb21794d951f5737231f14970bac4c4d50156e9e4b5972f0f2eebc9b5ea547a12e2f6bece930164f836395d46664e434a0fc552ae22f9bb7306dfd SHA512 64d034011239943cb3bae1bd11111c7abe294cee12fb4f3dec4ae6447b742d1149add01fccad7e7f51fd11b2afcf9040a6575f4e669df6225a4975786405131b
27
28 diff --git a/media-gfx/oda-file-converter/metadata.xml b/media-gfx/oda-file-converter/metadata.xml
29 new file mode 100644
30 index 000000000..b275135fb
31 --- /dev/null
32 +++ b/media-gfx/oda-file-converter/metadata.xml
33 @@ -0,0 +1,21 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="person">
38 + <email>vowstar@×××××.com</email>
39 + <name>Huang Rui</name>
40 + </maintainer>
41 + <longdescription lang="en">
42 + For converting between different versions of .dwg and .dxf
43 + ODA File Converter application features a graphical interface and a
44 + command-line interface.
45 + Upon execution, the application identifies all files in the specified
46 + source directory that match the specified filter, then loads and saves each
47 + of these files to the specified output directory as the specified output
48 + version/type.
49 + If the audit flag is enabled, an audit/repair operation will be applied to
50 + each file as it is loaded.
51 + If the recursive flag is enabled, subdirectories within the source
52 + directory will be processed recursively.
53 + </longdescription>
54 +</pkgmetadata>
55
56 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
57 new file mode 100644
58 index 000000000..e2cde787b
59 --- /dev/null
60 +++ b/media-gfx/oda-file-converter/oda-file-converter-22.5.0.0.ebuild
61 @@ -0,0 +1,50 @@
62 +# Copyright 1999-2021 Gentoo Authors
63 +# Distributed under the terms of the GNU General Public License v2
64 +
65 +EAPI=7
66 +
67 +MY_PV="$(ver_cut 1-2)"
68 +
69 +inherit desktop unpacker xdg
70 +
71 +DESCRIPTION="For converting between different versions of .dwg and .dxf"
72 +HOMEPAGE="https://www.opendesign.com"
73 +
74 +SRC_URI="https://download.opendesign.com/guestfiles/Demo/ODAFileConverter_QT5_lnxX64_7.2dll_${MY_PV}.deb"
75 +
76 +LICENSE="all-rights-reserved"
77 +SLOT="0"
78 +KEYWORDS="-* ~amd64"
79 +
80 +RDEPEND="
81 + dev-qt/qtcore
82 + x11-themes/hicolor-icon-theme
83 +"
84 +
85 +DEPEND="${RDEPEND}"
86 +
87 +BDEPEND="dev-util/patchelf"
88 +
89 +S="${WORKDIR}"
90 +
91 +QA_PREBUILT="*"
92 +QA_DESKTOP_FILE="usr/share/applications/ODAFileConverter.*\\.desktop"
93 +
94 +src_compile() {
95 + patchelf --set-rpath \
96 + "/usr/bin/ODAFileConverter_${PV}" \
97 + "usr/bin/ODAFileConverter_${PV}/ODAFileConverter" \
98 + || die "Failed to fix insecure RPATH"
99 +}
100 +
101 +src_install() {
102 + exeinto /usr/bin
103 + doexe usr/bin/ODAFileConverter
104 + exeinto /usr/bin/ODAFileConverter_${PV}
105 + doexe usr/bin/ODAFileConverter_${PV}/*
106 + domenu usr/share/applications/*.desktop
107 + doicon -s 16 usr/share/icons/hicolor/16x16/apps/ODAFileConverter.png
108 + doicon -s 32 usr/share/icons/hicolor/32x32/apps/ODAFileConverter.png
109 + doicon -s 64 usr/share/icons/hicolor/64x64/apps/ODAFileConverter.png
110 + doicon -s 128 usr/share/icons/hicolor/128x128/apps/ODAFileConverter.png
111 +}
112 \ No newline at end of file