Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 546784
Collapse All | Expand All

(-)a/dev-db/datamodeler/Manifest (+1 lines)
Line 0 Link Here
1
DIST datamodeler-19.1.0.081.0911-1.noarch.rpm 209767892 BLAKE2B 0b1962c6050c996e992e5e667378b1b24fa46e24fe7d68cfbb453332cd090ca843f92c3ec8a5fa199d9c3603c0a0cdc90842deccd447a554de2e33e5654f7ef3 SHA512 32ef5af00f378fccba8d089e0f5dbec26a3a36520e7a2f5296190961c954483f33b323ff7bf6f6e424e657bc289c639f5bb650455f176459d325753df2ca9c9f
(-)a/dev-db/datamodeler/datamodeler-19.1.0.081.0911.ebuild (+86 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit eutils rpm
7
8
MY_P="${P}-1.noarch"
9
10
DESCRIPTION="Oracle SQL Developer Data Modeler is a graphical data modeling tool"
11
HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/datamodeler/downloads/index.html"
12
SRC_URI="${MY_P}.rpm"
13
RESTRICT="fetch mirror"
14
15
LICENSE="OTN"
16
SLOT="0"
17
KEYWORDS="~amd64 ~x86"
18
19
DEPEND=""
20
RDEPEND=">=virtual/jdk-1.8.0
21
	dev-java/java-config:2"
22
23
S="${WORKDIR}"
24
25
pkg_nofetch() {
26
	eerror "Please go to"
27
	eerror "	${HOMEPAGE}"
28
	eerror "and download"
29
	eerror "	Oracle SQL Datam Modeler for Linux RPM"
30
	eerror "		${SRC_URI}"
31
	eerror "and move it to /usr/portage/distfiles"
32
}
33
34
src_unpack() {
35
	rpm_src_unpack ${A}
36
}
37
38
src_prepare() {
39
	default
40
	find ./ \( -iname "*.exe" -or -iname "*.dll" \) -exec rm {} +
41
	sed -i 's/Exec=/Exec=sh\ /' "${S}/opt/${PN}/${PN}.desktop"
42
43
	if use amd64; then
44
		rm -r "${S}"/opt/${PN}/netbeans/platform/modules/lib/i386
45
	else
46
		rm -r "${S}"/opt/${PN}/netbeans/platform/modules/lib/amd64
47
	fi
48
}
49
50
QA_PREBUILT="
51
	opt/${PN}/netbeans/platform/modules/lib/i386/linux/libjnidispatch-422.so
52
	opt/${PN}/netbeans/platform/modules/lib/amd64/linux/libjnidispatch-422.so
53
"
54
55
src_install() {
56
	dodir /usr/share/applications/
57
	cd "${S}"/opt/${PN} || die "cd failed"
58
	insinto /usr/share/applications/
59
	doins ${PN}.desktop
60
	rm ${PN}.desktop || die "rm failed"
61
62
	dodir /usr/bin/
63
	cd "${S}"/usr/local/bin/ || die "cd failed"
64
	exeinto /usr/bin/
65
	doexe ${PN}
66
	rm ${PN} || die "rm failed"
67
68
	dodir /opt/${PN}
69
	cd "${S}"/opt/${PN} || die "cd failed"
70
	insinto /opt/${PN}
71
	doins -r *
72
	exeinto /opt/${PN}
73
	doexe ${PN}.sh
74
}
75
76
pkg_postinst() {
77
	test -d /opt/${PN}/${PN}/log \
78
		|| mkdir /opt/${PN}/${PN}/log
79
	chgrp users /opt/${PN}/${PN}/log
80
	chmod 774 /opt/${PN}/${PN}/log
81
82
	test -f /opt/${PN}/${PN}/types/defaultdomains.xml \
83
		|| touch /opt/${PN}/${PN}/types/defaultdomains.xml
84
	chgrp users /opt/${PN}/${PN}/types/defaultdomains.xml
85
	chmod 664 /opt/${PN}/${PN}/types/defaultdomains.xml
86
}
(-)a/dev-db/datamodeler/metadata.xml (-1 / +8 lines)
Line 0 Link Here
0
- 
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
<pkgmetadata>
4
<maintainer type="person">
5
    <email>fedeliallalinea@gmail.com</email>
6
    <name>Marco Genasci</name>
7
</maintainer>
8
</pkgmetadata>

Return to bug 546784