media-gfx/odafileconverter - 24.2 (dilfridge)

Search

Install

Install this version:

emerge -a =media-gfx/odafileconverter-24.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-gfx/odafileconverter-24.2

Or alternatively:

emerge --autounmask-write -a =media-gfx/odafileconverter-24.2

Package Information

Description:
Open Design Alliance DWG-DXF Converter
Homepage:
https://www.opendesign.com/guestfiles/oda_file_converter
License:
all-rights-reserved

Ebuild Details

Version EAPI Keywords Slot
24.2 8 -* ~amd64 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit rpm desktop

DESCRIPTION="Open Design Alliance DWG-DXF Converter"
HOMEPAGE="https://www.opendesign.com/guestfiles/oda_file_converter"

SRC_URI="https://download.opendesign.com/guestfiles/Demo/ODAFileConverter_QT5_lnxX64_8.3dll_${PV}.rpm"

KEYWORDS="-* ~amd64"
SLOT="0"
LICENSE="all-rights-reserved"
IUSE="bundled-libs"

RESTRICT="mirror bindist"

RDEPEND="
	bundled-libs? ( media-libs/tiff-compat:4 )
"

S=${WORKDIR}

QA_PREBUILT="*"

src_prepare() {
	eapply_user

	if ! use bundled-libs ; then
		MY_REMOVE_LIBS=(
			libQt5
		)
		for name in ${MY_REMOVE_LIBS} ; do
			find "${S}" -name ${name}'*' -delete
		done

		# remove qt plugins
		rm -rfv "${S}"/usr/local/bin/ODAFileConverter_${PV}*/plugins
		rm -rfv "${S}"/usr/local/bin/ODAFileConverter_${PV}*/qt.conf
	fi
}

src_install() {
	# we dont want automated desktop icons
	rm -r "${S}"/etc

	# move stuff from /usr/local/bin to /opt
	dodir /opt
	mv "${S}"/usr/local/bin/ODAFileConverter* "${D}"/opt/

	# adjust path and move again
	sed -e 's:/usr/local/bin/:/opt/:g' -i "${D}"/opt/ODAFileConverter
	dodir /opt/bin
	mv "${D}"/opt/ODAFileConverter "${D}"/opt/bin/ODAFileConverter

	# the desktop files
	domenu "${S}"/usr/share/applications/ODAFileConverter.desktop

	# the icons, simpler by hand
	dodir /usr/share/icons
	mv "${S}"/usr/share/icons/* "${D}"/usr/share/icons/
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-gfx/odafileconverter | euse -E <flag> -p media-gfx/odafileconverter | euse -D <flag> -p media-gfx/odafileconverter

Global/Standard Flags

Inherited Eclasses

rpm

Dependencies

RDEPEND

	bundled-libs? ( media-libs/tiff-compat:4 )

Manifest for 24.2

Type File Size Source URLs
DIST ODAFileConverter_QT5_lnxX64_8.3dll_24.2.rpm 70168741 bytes https://download.opendesign.com/guestfiles/Demo/ODAFileConverter_QT5_lnxX64_8.3dll_24.2.rpm