diff options
author | Dion Moult <moult@gentoo.org> | 2014-02-06 09:52:04 +1100 |
---|---|---|
committer | Dion Moult <moult@gentoo.org> | 2014-02-06 09:52:04 +1100 |
commit | 4a398df4fbefc3f3fc63a741ca6cf38f1f011090 (patch) | |
tree | 20a7af07c9e19736f5a576d024c7e554558fa28e /media-gfx | |
parent | dev-vcs/git-cola: Fix broken documentation paths, #499658 (diff) | |
download | betagarden-4a398df4fbefc3f3fc63a741ca6cf38f1f011090.tar.gz betagarden-4a398df4fbefc3f3fc63a741ca6cf38f1f011090.tar.bz2 betagarden-4a398df4fbefc3f3fc63a741ca6cf38f1f011090.zip |
Bump version to 1.5.0_beta
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/draftsight-bin/ChangeLog | 10 | ||||
-rw-r--r-- | media-gfx/draftsight-bin/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/draftsight-bin/draftsight-bin-1.5.0_beta.ebuild | 187 | ||||
-rw-r--r-- | media-gfx/draftsight-bin/files/draftsight | 4 |
4 files changed, 200 insertions, 2 deletions
diff --git a/media-gfx/draftsight-bin/ChangeLog b/media-gfx/draftsight-bin/ChangeLog new file mode 100644 index 0000000..9880e85 --- /dev/null +++ b/media-gfx/draftsight-bin/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-gfx/draftsight-bin +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*draftsight-bin-1.5.0_beta (05 Feb 2014) + + 05 Feb 2014; Dion Moult <moult@gentoo.org> +draftsight-bin-1.5.0_beta.ebuild, + files/draftsight: + Bumped version to 1.5.0_beta + diff --git a/media-gfx/draftsight-bin/Manifest b/media-gfx/draftsight-bin/Manifest index 80a6f07..28ad018 100644 --- a/media-gfx/draftsight-bin/Manifest +++ b/media-gfx/draftsight-bin/Manifest @@ -1,3 +1,4 @@ DIST draftsight-1.4.0_beta.deb 306739782 SHA256 9bd56193040b8ae6d7a312ad3538db7755ad083eace5c66d2126eeba7e9ec0a1 SHA512 bcc9e538d2a506659ce22a784a2ae7dbc27747b4811afc3817472314ede31a209fe84b06b3492557a3b89e9b557d57b92316e9c6629bd6751d20938bfd9144e2 WHIRLPOOL 179f922e79bc2a5826777eb9f564d4b5ffc23f2c263890a0ac7f45a457ff6b9d08b491f8a7e86fbc63660b56d210e9dcd4a2bf5736d6edcee598a05852fe1e2f +DIST draftsight-1.5.0_beta.deb 112272334 SHA256 1943cad8c77eaead942bb052016fa49a45aa5d1bae9c65cd126825c963029100 SHA512 81cc7fab712f77af33bb5ee51166d5adb89619bee5b45dbee97b570ede287d6535cb0017e34f0fcaeea5c89c9ad81e2b5dee745584bfdc9cf048aa3b17326731 WHIRLPOOL 12bb582fb7d290f6445cd7f4a8f44aeeeba4f559a8ae6cf12bf9142e238cf1c288d208715953ff5bbc38b354d2cf781360e2637471fd77529f50fc14b2f9b01d 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.5.0_beta.ebuild b/media-gfx/draftsight-bin/draftsight-bin-1.5.0_beta.ebuild new file mode 100644 index 0000000..179d94f --- /dev/null +++ b/media-gfx/draftsight-bin/draftsight-bin-1.5.0_beta.ebuild @@ -0,0 +1,187 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit fdo-mime udev unpacker + +MY_PN="draftsight" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Professional 2D CAD application, supporting DWT, DXF and DWG." +HOMEPAGE="http://www.3ds.com/products/draftsight/free-cad-software/" +# 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="${MY_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" + +RESTRICT="fetch" +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 + )" + +pkg_nofetch() { + einfo "Upstream has a mandatory EULA agreement to download this file." + einfo "Please navigate your browser to:" + einfo "http://www.3ds.com/products/draftsight/download-draftsight/" + einfo "Click \"Download DraftSight for Ubuntu (Beta V1R5.0)\"" + einfo "Download the deb file and move it to ${DISTDIR}/${MY_P}.deb" + if use amd64 ; then + einfo "Then download http://dev.gentoo.org/~moult/draftsight/libaudio.tar.gz" + einfo "And move the file to ${DISTDIR}/" + fi +} + +src_install() { + cp -R "${WORKDIR}/opt" "${D}" + exeinto /usr/bin + doexe "${FILESDIR}/${MY_PN}" + + if use amd64 ; then + insinto /opt/dassault-systemes/DraftSight/Libraries/ + 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 mimetypes \ + --mode system --size ${size} \ + "${ROOT}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${size}x${size}/program.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/Resources/pixmaps/${size}x${size}/program.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/Resources/pixmaps/${size}x${size}/file-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/Resources/pixmaps/${size}x${size}/file-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/Resources/pixmaps/${size}x${size}/file-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/Resources/pixmaps/${size}x${size}/file-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/Resources/pixmaps/${size}x${size}/file-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/Resources/pixmaps/${size}x${size}/file-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 +} diff --git a/media-gfx/draftsight-bin/files/draftsight b/media-gfx/draftsight-bin/files/draftsight index a879269..8fe6141 100644 --- a/media-gfx/draftsight-bin/files/draftsight +++ b/media-gfx/draftsight-bin/files/draftsight @@ -1,9 +1,9 @@ #! /bin/bash -BASEDIR="/opt/dassault-systemes/draftsight/bin" +BASEDIR="/opt/dassault-systemes/DraftSight/Linux" export LD_LIBRARY_PATH="${BASEDIR}${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH}" # work around DT_RPATH (.) security issue by chdir'ing into expected $LD_LIBRARY_PATH cd "${BASEDIR}" -exec "${BASEDIR}/draftsight.bin" $* +exec "${BASEDIR}/DraftSight" $* |