Gentoo Archives: gentoo-commits

From: Mike Auty <ikelos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/ikelos:master commit in: dev-python/pycharm-community/, dev-util/pycharm-community/, ...
Date: Mon, 01 Dec 2014 01:11:28
Message-Id: 1417396239.d91060d79fc86f3fab6434491b04195e6a246fc5.ikelos@gentoo
1 commit: d91060d79fc86f3fab6434491b04195e6a246fc5
2 Author: Mike Auty <mike.auty <AT> gmail <DOT> com>
3 AuthorDate: Mon Dec 1 01:10:39 2014 +0000
4 Commit: Mike Auty <ikelos <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 1 01:10:39 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=dev/ikelos.git;a=commit;h=d91060d7
7
8 Move pycharm-community to match the main tree.
9
10 ---
11 dev-python/pycharm-community/Manifest | 2 -
12 .../pycharm-community-3.4.1.ebuild | 41 -----------------
13 dev-util/pycharm-community/Manifest | 3 ++
14 dev-util/pycharm-community/files/README.gentoo | 5 +++
15 .../pycharm-community-4.0.1.ebuild | 51 ++++++++++++++++++++++
16 5 files changed, 59 insertions(+), 43 deletions(-)
17
18 diff --git a/dev-python/pycharm-community/Manifest b/dev-python/pycharm-community/Manifest
19 deleted file mode 100644
20 index 28a88a6..0000000
21 --- a/dev-python/pycharm-community/Manifest
22 +++ /dev/null
23 @@ -1,2 +0,0 @@
24 -DIST pycharm-community-3.4.1.tar.gz 112821686 SHA256 96427b1e842e7c09141ec4d3ede627c5ca7d821c0d6c98169b56a34f9035ef64 SHA512 3f5a4c8c598ed0fe1a28335b63864a5597fe6da3d6de225ada93bbe4342b81db8cc0a96f297b5f0ebe9608b8507f9293419790805b7e24e0151175e952ecd421 WHIRLPOOL efd62eb960902ab26983f51b2904209315b5a9535d6f0c0a45bc9d90df87cafc9d2d720d20e702b1846c0d2083af4e529f6de15184d73996da6164b4b8a38ac2
25 -EBUILD pycharm-community-3.4.1.ebuild 951 SHA256 b42d42c004aadedb55c038e1800a6ef9363a0b69ef03c25c9e47c7529f4edbba SHA512 f5cb4b8e9f888001548138dc880a12ad8fc3902933941e17eb061d593ba89f82854e4c310c7ea4a6799d757ae4b1133d881774c8f634ad0116bddb590d416a60 WHIRLPOOL 3e0dc4be9d98904ca4dbf1138c369659f2d0459e355b42d82d8ef6c84f353528407d29738c4da2098721035416746e06478c99bd70e74f62e10834e25e151a6b
26
27 diff --git a/dev-python/pycharm-community/pycharm-community-3.4.1.ebuild b/dev-python/pycharm-community/pycharm-community-3.4.1.ebuild
28 deleted file mode 100644
29 index 2f8c7d8..0000000
30 --- a/dev-python/pycharm-community/pycharm-community-3.4.1.ebuild
31 +++ /dev/null
32 @@ -1,41 +0,0 @@
33 -EAPI="4"
34 -
35 -inherit eutils
36 -
37 -PBN=$(echo ${PN}|cut -d"-" -f1)
38 -PB="${PBN}-${PV}"
39 -
40 -DESCRIPTION="Powerful Python and Django IDE similar to IntelliJ IDEA"
41 -HOMEPAGE="www.jetbrains.com/pycharm/"
42 -SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
43 -
44 -KEYWORDS="~x86 ~amd64"
45 -
46 -DEPEND=">=virtual/jre-1.6"
47 -RDEPEND="${DEPEND}
48 - !dev-util/pycharm-professional"
49 -RESTRICT="strip mirror"
50 -
51 -SLOT="0"
52 -S=${WORKDIR}
53 -
54 -src_prepare() {
55 - sed -i ${S}/${P}/bin/${PBN}.sh -e 's/^\(\ *read IGNORE\)/#\1/'
56 -}
57 -
58 -src_install() {
59 - dodir /opt/${PN}
60 - mv "${S}/${P}" "${D}/opt/${PBN}" || die
61 -
62 - dosym /opt/${PBN}/bin/pycharm.sh /usr/bin/${PBN}
63 - doicon "${D}/opt/${PBN}/bin/${PBN}.png"
64 - make_desktop_entry ${PBN} "PyCharm ${PV}" ${PBN} "Development;IDE"
65 -}
66 -
67 -pkg_postinst() {
68 - ewarn "According to JetBrains, PyCharm has performance and"
69 - ewarn "graphics issues with OpenJDK Java."
70 - ewarn ""
71 - ewarn "Please consider using Oracle JDK."
72 - ewarn "Especially before reporting problems upstream."
73 -}
74
75 diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest
76 new file mode 100644
77 index 0000000..b783163
78 --- /dev/null
79 +++ b/dev-util/pycharm-community/Manifest
80 @@ -0,0 +1,3 @@
81 +AUX README.gentoo 169 SHA256 3bcfb4f4909ec42cbaba2645b5c88d111f47b7d5e800a8aeadf3130091fd8bab SHA512 a0254552b98b6ec8dadd91ed7df35bf990d08025d8352366f58ecabe94cdde2df64d8665447d0a2ffc1edacdeb05124c2a82722d5ad70b614d90bb0ae38544d2 WHIRLPOOL f0de5cc2a1955e210655ee10d305bcfaf6a4a7b6dba46e17eece981d50bb461e9bd5bde772462a5849ebf59e54357bcfe42a5322c614bc75c1f96202654aa605
82 +DIST pycharm-community-4.0.1.tar.gz 120167832 SHA256 62dbf4db642f3347852088f29dc84c91acfd8f5f0e05a0dee1f7dd5662d7004a SHA512 f8aba87a6a88dd343814344006c95260896c4b2ef956492181513cad3fb18b291aafc646603135131d57648981566f80e4a096e9f9a4747087c6ee25e74840b7 WHIRLPOOL f01606acf02e3cced50bc570c5c3037c01d2f3fbe58e6b0434bc11296280917e4d8b6e59a36eb20ab07786efd8b13cdc4a94797cc0dc50fe130574c6b8d89b7c
83 +EBUILD pycharm-community-4.0.1.ebuild 1170 SHA256 03a13b965f558df1d464d7cdc1c2f206b1fcab700b754106a562f8e5cd2185cf SHA512 b096f7ede35db8cd63803bc09de13f6e1320f1e69d09d58b6905163b41c86ee8965336d69497aa7d1715e2da274ef8b02c8fc788b99057c511edc2a7495b8fbc WHIRLPOOL 206d510fd14aa3d2ef7c1441dc9eceb7a3bc547582068c38994f683bfd8221525652855f5a22af873e9c02dee3dfdc0c4119b3bcb87f7c5f775190cad5f1fdb6
84
85 diff --git a/dev-util/pycharm-community/files/README.gentoo b/dev-util/pycharm-community/files/README.gentoo
86 new file mode 100644
87 index 0000000..2164d9e
88 --- /dev/null
89 +++ b/dev-util/pycharm-community/files/README.gentoo
90 @@ -0,0 +1,5 @@
91 +According to JetBrains, PyCharm has performance and
92 +graphics issues with OpenJDK Java.
93 +
94 +Please consider using Oracle JDK.
95 +Especially before reporting problems upstream.
96
97 diff --git a/dev-util/pycharm-community/pycharm-community-4.0.1.ebuild b/dev-util/pycharm-community/pycharm-community-4.0.1.ebuild
98 new file mode 100644
99 index 0000000..8abf7e0
100 --- /dev/null
101 +++ b/dev-util/pycharm-community/pycharm-community-4.0.1.ebuild
102 @@ -0,0 +1,51 @@
103 +# Copyright 1999-2014 Gentoo Foundation
104 +# Distributed under the terms of the GNU General Public License v2
105 +# $Header: /var/cvsroot/gentoo-x86/dev-util/pycharm-community/pycharm-community-3.4.1.ebuild,v 1.1 2014/09/14 16:08:17 xmw Exp $
106 +
107 +EAPI=5
108 +
109 +inherit eutils fdo-mime gnome2-utils readme.gentoo
110 +
111 +DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
112 +HOMEPAGE="http://www.jetbrains.com/pycharm/"
113 +SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
114 +
115 +LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
116 +SLOT="0"
117 +KEYWORDS="~amd64"
118 +IUSE=""
119 +
120 +RDEPEND=">=virtual/jre-1.6
121 + !dev-util/pycharm-professional"
122 +DEPEND=""
123 +
124 +RESTRICT="mirror strip"
125 +
126 +MY_PN=${PN/-community/}
127 +
128 +pkg_preinst() {
129 + gnome2_icon_savelist
130 +}
131 +
132 +pkg_postinst() {
133 + gnome2_icon_cache_update
134 + fdo-mime_desktop_database_update
135 +}
136 +
137 +pkg_postrm() {
138 + gnome2_icon_cache_update
139 + fdo-mime_desktop_database_update
140 +}
141 +
142 +src_install() {
143 + insinto /opt/${PN}
144 + doins -r *
145 +
146 + fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
147 +
148 + dosym /opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
149 + newicon "bin/${MY_PN}.png" ${PN}.png
150 + make_desktop_entry ${PN} "${PN}" "${PN}"
151 +
152 + readme.gentoo_src_install
153 +}