/[gentoo-x86]/net-misc/italc/italc-1.0.9.ebuild
Gentoo

Contents of /net-misc/italc/italc-1.0.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Wed Aug 22 22:56:10 2012 UTC (7 years, 3 months ago) by johu
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/italc/italc-1.0.9.ebuild,v 1.11 2012/06/25 17:27:10 jlec Exp $
4
5 EAPI=2
6
7 inherit autotools eutils qt4-r2 user
8
9 DESCRIPTION="Intelligent Teaching And Learning with Computers (iTALC) supports working with computers in school"
10 HOMEPAGE="http://italc.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/italc/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16
17 IUSE="X v4l crypt xinerama threads fbcon system-libvncserver"
18
19 RDEPEND="
20 dev-libs/lzo
21 dev-libs/openssl
22 virtual/jpeg
23 sys-apps/tcp-wrappers
24 sys-libs/zlib
25 x11-libs/qt-core:4
26 x11-libs/qt-xmlpatterns:4
27 system-libvncserver? ( net-libs/libvncserver )
28 xinerama? ( x11-libs/libXinerama )
29 X? (
30 x11-libs/libICE
31 x11-libs/libSM
32 x11-libs/libX11
33 x11-libs/libXdamage
34 x11-libs/libXext
35 x11-libs/libXfixes
36 x11-libs/libXrandr
37 x11-libs/libXtst
38 x11-apps/xinput
39 x11-libs/qt-gui:4
40 )"
41 DEPEND="${RDEPEND}
42 X? ( x11-proto/inputproto )"
43
44 pkg_setup() {
45 enewgroup italc
46 }
47
48 src_prepare() {
49 epatch "${FILESDIR}"/${P}-qt4-libpath.patch
50 epatch "${FILESDIR}"/${P}-strip.patch
51 use system-libvncserver && epatch "${FILESDIR}"/${P}-system-libvncserver.patch
52 epatch "${FILESDIR}"/${P}-gcc44.patch
53 epatch "${FILESDIR}"/${P}-as-needed.patch
54 epatch "${FILESDIR}"/${P}-gcc45.patch
55 eautoreconf
56 }
57
58 src_configure() {
59 econf \
60 "--with-qtdir=/usr" \
61 "--with-linux" \
62 "--with-uinput" \
63 "--without-macosx-native" \
64 $(use_with xinerama) \
65 $(use_with X x) \
66 $(use_with X xkeyboard) \
67 $(use_with X xrandr) \
68 $(use_with X xfixes) \
69 $(use_with X xdamage) \
70 $(use_with X xtrap) \
71 $(use_with X xrecord) \
72 $(use_with X dpms) \
73 $(use_with v4l) \
74 $(use_with fbcon fbdev) \
75 $(use_with fbcon fbpm) \
76 $(use_with threads pthread) \
77 $(use_with crypt) \
78 || die "econf failed"
79 }
80
81 src_install() {
82 emake DESTDIR="${D}" install || die "Install failed"
83 rm -r "${D}/usr/share/italc"
84 dodoc TODO README AUTHORS INSTALL ChangeLog
85
86 # -- disabled per 2007-04-04 as the icon is missing in upstream file
87 # -- joke
88 # Install server logo
89 #newicon ima/resources/client_manager.png ${PN}.png
90 #make_desktop_entry ${PN} "iTALC Master" ${PN} "Qt;KDE;Education"
91 }
92
93 pkg_postinst() {
94 elog "On the master, please run "
95 elog "# emerge --config =${CATEGORY}/${PF}"
96
97 elog "Please add the logins of master users (teachers) to the italc group by running"
98 elog "# usermod -a -G italc <loginname>"
99
100 elog ""
101 }
102
103 pkg_config() {
104 if [ ! -d /etc/italc/keys ] ; then
105 einfo "Creating public and private keys for italc in /etc/italc/keys."
106 /usr/bin/ica -role teacher -createkeypair > /dev/null
107 eend $?
108 einfo "Setting chmod 640 on private keys."
109 chgrp -R italc /etc/italc
110 chmod -R o-rwx /etc/italc/keys/private
111 else
112 einfo "Not creating new keypair, as /etc/italc/keys already exists"
113 fi
114 }

  ViewVC Help
Powered by ViewVC 1.1.20