dev-util/goland: bump
authorJason A. Donenfeld <zx2c4@gentoo.org>
Tue, 26 Feb 2019 23:35:46 +0000 (00:35 +0100)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Thu, 28 Feb 2019 03:07:28 +0000 (04:07 +0100)
Package-Manager: Portage-2.3.54, Repoman-2.3.12
Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>
dev-util/goland/Manifest
dev-util/goland/goland-2018.3.4.ebuild [new file with mode: 0644]

index c6ec44aec9214ade585b55c9c926a7f8a141c001..a128438dedff32435ffbcf161d37916a55d26161 100644 (file)
@@ -1 +1,2 @@
 DIST goland-2018.2.tar.gz 236750402 BLAKE2B 54df8b09f4ae59323c4b8aa06d41a23753399d36fbdf34a0ecbb159d00fb5a6cf29fd4aeeaee9d853b54d2ceaa8f99ad5560128b4e50b4ad2720a2db81df7dc3 SHA512 f1c7ddb94bb918b9668d444e285f4ff82b45c9aa1e24e848f32bc219b2dd48a939d52f6c5c749fc76bfdd3f58e2f2a72ca2275a9291a7a5a5a3c6a30c4780420
+DIST goland-2018.3.4.tar.gz 298506989 BLAKE2B 9fd4db8c178c0a749c685b5e77da22717923f1da2371e92246eec3422e8041c3d8c975ffc562e92dcfdd0580297f4ffc0569e82ffea231cc3688b5570b4af7cd SHA512 ce7efbea9b531079dfae241f4817f04bb3969a65b1b8d6128b28d82b0262dfe3881ae1b6ceeff4fd3a084743d2ad512dd948f231a66f3b6a4347c522409cc81d
diff --git a/dev-util/goland/goland-2018.3.4.ebuild b/dev-util/goland/goland-2018.3.4.ebuild
new file mode 100644 (file)
index 0000000..824cf5b
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+SLOT=0
+
+SRC_URI="http://download.jetbrains.com/go/${P}.tar.gz"
+DESCRIPTION="Golang IDE by JetBrains"
+HOMEPAGE="http://www.jetbrains.com/go"
+
+KEYWORDS="~amd64"
+LICENSE="IDEA
+       || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+
+QA_PREBUILT="opt/${P}/*"
+
+S=${WORKDIR}/GoLand-${PV}
+
+RDEPEND="dev-lang/go"
+
+src_prepare() {
+       default
+       if ! use arm; then
+               rm -rf bin/fsnotifier-arm || die
+       fi
+}
+
+src_install() {
+       local dir="/opt/${P}"
+
+       insinto "${dir}"
+       doins -r *
+       fperms 755 "${dir}"/bin/{${PN}.sh,fsnotifier{,64}}
+
+       make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+       newicon "bin/${PN}.png" "${PN}.png"
+       make_desktop_entry "${PN}" "gogland" "${PN}" "Development;IDE;"
+
+       # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+       mkdir -p "${D}/etc/sysctl.d/" || die
+       echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}