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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 11 19:19:01 2007 UTC (12 years, 5 months ago) by jokey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump and drop old
(Portage version: 2.1.3_rc7)

1 # Copyright 1999-2007 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.1.ebuild,v 1.1 2007/04/03 22:34:13 jokey Exp $
4
5 inherit qt4 eutils autotools
6
7 DESCRIPTION="Intelligent Teaching And Learning with Computers (iTALC) supports working with computers in school"
8 HOMEPAGE="http://italc.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/italc/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14
15 IUSE="X v4l crypt xinerama threads fbcon"
16
17 DEPEND="dev-libs/lzo
18 sys-apps/tcp-wrappers
19 x11-libs/wxGTK
20 media-libs/jpeg
21 sys-libs/zlib
22 dev-libs/openssl
23 $(qt4_min_version 4)
24 xinerama? ( x11-libs/libXinerama )
25 X? ( x11-libs/libICE
26 x11-libs/libSM
27 x11-libs/libX11
28 x11-libs/libXdamage
29 x11-libs/libXext
30 x11-libs/libXfixes
31 x11-libs/libXrandr
32 x11-libs/libXtst )"
33 RDEPEND=${DEPEND}
34
35 pkg_setup() {
36 enewgroup italc
37 }
38
39 src_compile() {
40 econf \
41 "--with-qtdir=${ROOT}/usr" \
42 "--with-linux" \
43 "--with-uinput" \
44 "--without-macosx-native" \
45 $(use_with xinerama) \
46 $(use_with X x) \
47 $(use_with X xkeyboard) \
48 $(use_with X xrandr) \
49 $(use_with X xfixes) \
50 $(use_with X xdamage) \
51 $(use_with X xtrap) \
52 $(use_with X xrecord) \
53 $(use_with X dpms) \
54 $(use_with v4l) \
55 $(use_with fbcon fbdev) \
56 $(use_with fbcon fbpm) \
57 $(use_with threads pthread) \
58 $(use_with crypt) \
59 || die "econf failed"
60 emake || die "make failed"
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install || die "Install failed"
65 rm -r "${D}/usr/share/italc"
66 dodoc TODO README AUTHORS INSTALL ChangeLog
67
68 # -- disabled per 2007-04-04 as the icon is missing in upstream file
69 # -- joke
70 # Install server logo
71 #newicon ima/resources/client_manager.png ${PN}.png
72 #make_desktop_entry "${PN}" "iTALC Master" "${PN}.png" "Qt;KDE;Education"
73 }
74
75 pkg_postinst() {
76 elog "On the master, please run "
77 elog "# emerge --config =${CATEGORY}/${PF}"
78
79 elog "Please add the logins of master users (teachers) to the italc group by running"
80 elog "# usermod -a -G italc <loginname>"
81
82 elog ""
83 }
84
85 pkg_config() {
86 if [ ! -d /etc/italc/keys ] ; then
87 einfo "Creating public and private keys for italc in /etc/italc/keys."
88 /usr/bin/ica -role teacher -createkeypair > /dev/null
89 eend $?
90 einfo "Setting chmod 640 on private keys."
91 chgrp -R italc /etc/italc
92 chmod -R o-rwx /etc/italc/keys/private
93 else
94 einfo "Not creating new keypair, as /etc/italc/keys already exists"
95 fi
96 }

  ViewVC Help
Powered by ViewVC 1.1.20