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@gmail.com>
This commit is contained in:
Huang Rui
2021-06-11 15:26:32 +08:00
parent e037084eb2
commit cbff1ace41
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ODAFileConverter_QT5_lnxX64_7.2dll_22.5.deb 26269172 BLAKE2B 5676736a9acb21794d951f5737231f14970bac4c4d50156e9e4b5972f0f2eebc9b5ea547a12e2f6bece930164f836395d46664e434a0fc552ae22f9bb7306dfd SHA512 64d034011239943cb3bae1bd11111c7abe294cee12fb4f3dec4ae6447b742d1149add01fccad7e7f51fd11b2afcf9040a6575f4e669df6225a4975786405131b

View File

@@ -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>vowstar@gmail.com</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>

View File

@@ -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
}