summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDion Moult <moult@gentoo.org>2013-10-11 00:10:48 +1100
committerDion Moult <moult@gentoo.org>2013-10-11 00:10:48 +1100
commit0a0d61d2d8ac2cc6cf4ac5b59fbd3d1d5691a078 (patch)
treea4f5a8efab25f6cf11c49b187f651862db225070 /media-gfx
parentwww-client/chromium-bin-debian: Remove old versions (diff)
downloadbetagarden-0a0d61d2d8ac2cc6cf4ac5b59fbd3d1d5691a078.tar.gz
betagarden-0a0d61d2d8ac2cc6cf4ac5b59fbd3d1d5691a078.tar.bz2
betagarden-0a0d61d2d8ac2cc6cf4ac5b59fbd3d1d5691a078.zip
Return old version of 1.3.1_beta due to instability upstream
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/draftsight-bin/Manifest1
-rw-r--r--media-gfx/draftsight-bin/draftsight-bin-1.3.1_beta.ebuild177
2 files changed, 178 insertions, 0 deletions
diff --git a/media-gfx/draftsight-bin/Manifest b/media-gfx/draftsight-bin/Manifest
index 7002cf1..80a6f07 100644
--- a/media-gfx/draftsight-bin/Manifest
+++ b/media-gfx/draftsight-bin/Manifest
@@ -1,2 +1,3 @@
DIST draftsight-1.4.0_beta.deb 306739782 SHA256 9bd56193040b8ae6d7a312ad3538db7755ad083eace5c66d2126eeba7e9ec0a1 SHA512 bcc9e538d2a506659ce22a784a2ae7dbc27747b4811afc3817472314ede31a209fe84b06b3492557a3b89e9b557d57b92316e9c6629bd6751d20938bfd9144e2 WHIRLPOOL 179f922e79bc2a5826777eb9f564d4b5ffc23f2c263890a0ac7f45a457ff6b9d08b491f8a7e86fbc63660b56d210e9dcd4a2bf5736d6edcee598a05852fe1e2f
+DIST draftsight-bin-1.3.1_beta.deb 128825534 SHA256 f7447ebb15ef9c5b479c22acba6ca0bd3685e0c0149d52c6ea434842a0d5b143 SHA512 481945c7c184b8ccafedbf2e53dcb78a243793925674dea650e35ecee524d65a0bd9545b7df114254ad68fc0051bc4cc2d3fa4f144625915be158d8e4035b42f WHIRLPOOL 347b423324b73cc25ff1ac7134154571589727fbd0bb55989b5a9d7feab4f0502ded0f2abec406184b04704addd992b4bac1a9c2b5ddce29df1217fd6737833f
DIST libaudio.tar.gz 42667 SHA256 7a39e2cd3cd321a3c0b4744ad7ba46d5e106582a4734dab067a4cf228e4cc86e SHA512 4028d63968e80c4085e64d9d0eca0fe4b101437dcb2a0762f676fe28607287e504485a69535a3bd607d5c6e71c65e77b1d6a15b3140ff92f755dd6fb3fa6dde6 WHIRLPOOL 70ac3286a3063ca9489b0061befa2f99eb9ea134659013d35cc198df48d4555000efeb407aa3dacc600c196af0a42e2ddff79d117101e581942b24ee1f73484b
diff --git a/media-gfx/draftsight-bin/draftsight-bin-1.3.1_beta.ebuild b/media-gfx/draftsight-bin/draftsight-bin-1.3.1_beta.ebuild
new file mode 100644
index 0000000..d5137ab
--- /dev/null
+++ b/media-gfx/draftsight-bin/draftsight-bin-1.3.1_beta.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit fdo-mime udev unpacker versionator
+
+DESCRIPTION="Professional 2D CAD application, supporting DWT, DXF and DWG."
+HOMEPAGE="http://www.3ds.com/products/draftsight/free-cad-software/"
+
+MY_PN="draftsight"
+MY_PV="V$(replace_version_separator 1 'R' $(get_version_component_range 1-$(get_last_version_component_index)))"
+MY_P="${MY_PN}-${MY_PV}"
+## The libaudio requirement is due to ABI_X86 not being stable enough yet.
+## See bug #463942 for the initial reason this was inserted.
+SRC_URI="http://dl-ak.solidworks.com/nonsecure/draftsight/${MY_PV}/${MY_PN}.deb -> ${P}.deb
+amd64? ( http://dev.gentoo.org/~moult/draftsight/libaudio.tar.gz )"
+
+
+LICENSE="${MY_PN}"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+S="${WORKDIR}"
+
+QA_PRESTRIPPED="opt/dassault-systemes/${MY_PN}/bin/DWGConverter
+ amd64? ( opt/dassault-systemes/${MY_PN}/lib/libaudio.so.2 )"
+QA_TEXTRELS="opt/dassault-systemes/${MY_PN}/lib/libDDKERNEL.so.1"
+QA_EXECSTACK="opt/dassault-systemes/${MY_PN}/bin/FxCrashRptApp
+opt/dassault-systemes/${MY_PN}/lib/libDDKERNEL.so.1"
+
+DEPEND=""
+RDEPEND="amd64? (
+ app-emulation/emul-linux-x86-baselibs
+ app-emulation/emul-linux-x86-opengl
+ app-emulation/emul-linux-x86-qtlibs
+ app-emulation/emul-linux-x86-soundlibs
+ app-emulation/emul-linux-x86-xlibs
+ )
+ !amd64? (
+ sys-libs/zlib
+ net-print/cups
+ dev-libs/expat
+ dev-libs/glib:2
+ media-libs/glu
+ media-libs/phonon
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtsql:4
+ dev-qt/qtwebkit:4
+ dev-qt/qtsvg:4
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libXt
+ media-libs/nas
+ )"
+
+src_install() {
+ cp -R "${WORKDIR}/opt" "${D}"
+ exeinto /usr/bin
+ doexe "${FILESDIR}/${MY_PN}"
+
+ if use amd64 ; then
+ insinto /opt/dassault-systemes/${MY_PN}/lib/
+ doins libaudio.so.2
+ fi
+}
+
+pkg_postinst() {
+ elog "To use DraftSight as your default viewer for DWG, DXF, and DWT"
+ elog "Please run the following commands respectively as your normal user:"
+ elog "xdg-mime default \"dassault-systemes\"_\"draftsight.desktop\" \"application/vnd.dassault-systemes.draftsight-dwg\""
+ elog "xdg-mime default \"dassault-systemes\"_\"draftsight.desktop\" \"application/vnd.dassault-systemes.draftsight-dxf\""
+ elog "xdg-mime default \"dassault-systemes\"_\"draftsight.desktop\" \"application/vnd.dassault-systemes.draftsight-dwt\""
+
+ local ICON_SIZES="16 32 48 64 128"
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ for size in ${ICON_SIZES} ; do
+ xdg-icon-resource install --noupdate --novendor --context apps --mode \
+ system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight.png" \
+ "dassault-systemes.draftsight" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --theme gnome --context \
+ apps --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight.png" \
+ "dassault-systemes.draftsight" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --context mimetypes \
+ --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dwg.png" \
+ "application-vnd.dassault-systemes.draftsight-dwg" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --theme gnome --context \
+ mimetypes --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dwg.png" \
+ "application-vnd.dassault-systemes.draftsight-dwg" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --context mimetypes \
+ --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dxf.png" \
+ "application-vnd.dassault-systemes.draftsight-dxf" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --theme gnome --context \
+ mimetypes --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dxf.png" \
+ "application-vnd.dassault-systemes.draftsight-dxf" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --context mimetypes \
+ --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dwt.png" \
+ "application-vnd.dassault-systemes.draftsight-dwt" \
+ || die "icon resource installation failed"
+ xdg-icon-resource install --noupdate --novendor --theme gnome --context \
+ mimetypes --mode system --size ${size} \
+ "${ROOT}/opt/dassault-systemes/draftsight/mime/pixmaps/${size}x${size}/dassault-systemes_draftsight-dwt.png" \
+ "application-vnd.dassault-systemes.draftsight-dwt" \
+ || die "icon resource installation failed"
+ done
+ xdg-icon-resource forceupdate
+
+ # prepare for dongle
+ udev_dorules "${FILESDIR}"/10-ft-rockey.rules
+}
+
+pkg_prerm() {
+ local ICON_SIZES="16 32 48 64 128"
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ for size in ${ICON_SIZES} ; do
+ xdg-icon-resource uninstall --noupdate --context apps --mode system \
+ --size ${size} "dassault-systemes.draftsight" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context apps --theme gnome \
+ --mode system --size ${size} "dassault-systemes.draftsight" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --mode system \
+ --size ${size} "application-vnd.dassault-systemes.draftsight-dwg" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --theme gnome \
+ --mode system --size ${size} \
+ "application-vnd.dassault-systemes.draftsight-dwg" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --mode system \
+ --size ${size} "application-vnd.dassault-systemes.draftsight-dxf" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --theme gnome \
+ --mode system --size ${size} \
+ "application-vnd.dassault-systemes.draftsight-dxf" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --mode system \
+ --size ${size} "application-vnd.dassault-systemes.draftsight-dwt" \
+ || ewarn "icon uninstall failed"
+ xdg-icon-resource uninstall --noupdate --context mimetypes --theme gnome \
+ --mode system --size ${size} \
+ "application-vnd.dassault-systemes.draftsight-dwt" \
+ || ewarn "icon uninstall failed"
+ done
+ xdg-icon-resource forceupdate
+
+ # remove dongle preparing
+ if [ "${ROOT}/etc/udev/rules.d/" ]; then
+ rm -f "${ROOT}/etc/udev/rules.d/10-ft-rockey.rules"
+ fi
+}