Commits

Mike Gilbert committed 3e7e33e

Add google-webdesigner.

Comments (0)

Files changed (2)

app-misc/google-webdesigner/Manifest

+DIST google-webdesigner_1.0.1.0_amd64.deb 31948742 SHA256 4455ded185d62483e4d108fa86768ba95001263207e8373dc20f603dc68c9e02 SHA512 692309e74504adc8b9a40db84aa3ea539a0a958850089c4bfa863e60efa21b21365b9f25027af666875d076df31df9e617ff549857c32fe3e15f26c76aeb30ce WHIRLPOOL f33bd2f09f738163a0e4195bbf06bd297f0a4a974bddb69423bbd2ecffabdaca50a6c5e52532a78ded2ebb3b24027e687aa49f9462a1e845a7225eb82a74c6a6

app-misc/google-webdesigner/google-webdesigner-1.0.1.0.ebuild

+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit multilib unpacker
+
+DESCRIPTION="Create engaging, interactive HTML5-based designs and motion graphics that can run on any device"
+HOMEPAGE="https://www.google.com/webdesigner/"
+MY_P="${PN}_${PV}"
+SRC_URI="amd64? ( https://dl.google.com/linux/webdesigner/deb/pool/main/g/${PN}/${MY_P}_amd64.deb )
+	x86? ( https://dl.google.com/linux/webdesigner/deb/pool/main/g/${PN}/${MY_P}_i386.deb )"
+
+LICENSE="google-chrome"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+	dev-libs/glib:2
+	x11-libs/gdk-pixbuf:2
+	x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+QA_PREBUILT="*"
+
+GWDHOME=opt/google/webdesigner
+
+src_install() {
+	mv usr/share/doc/{${PN},${PF}} || die
+	doins -r opt usr
+	fperms +x /${GWDHOME}/webdesigner
+}
+
+pkg_postinst() {
+	local lib libdir target
+
+	for libdir in {,usr/}$(get_libdir); do
+		lib=${EROOT}${libdir}/libudev.so.1
+		if [[ -e ${lib} ]]; then
+			target=$(realpath -ms --relative-to="${EROOT}${GWDHOME}" "${lib}")
+			ln -fs "${target}" "${EROOT}${GWDHOME}/libudev.so.0"
+			break
+		fi
+	done
+}
+
+pkg_prerm() {
+	rm -f "${EROOT}${GWDHOME}/libudev.so.0"
+}