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

(-)qingy-0.9.6.ebuild.~1.1~ (-12 / +21 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-0.9.6.ebuild,v 1.1 2007/04/26 05:23:40 s4t4n Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-apps/qingy/qingy-0.9.6.ebuild,v 1.1 2007/04/26 05:23:40 s4t4n Exp $
4
4
5
inherit eutils
5
inherit elisp-common eutils
6
6
7
GENTOO_THEME_VERSION="2.1"
7
GENTOO_THEME_VERSION="2.1"
8
8
Lines 22-36 Link Here
22
	directfb?     ( >=dev-libs/DirectFB-0.9.24 )
22
	directfb?     ( >=dev-libs/DirectFB-0.9.24 )
23
	emacs?        ( virtual/emacs )
23
	emacs?        ( virtual/emacs )
24
	pam?          ( >=sys-libs/pam-0.75-r11 )
24
	pam?          ( >=sys-libs/pam-0.75-r11 )
25
	X?            ( || ( (
25
	X?            ( x11-libs/libX11
26
	                       x11-libs/libX11
26
					x11-libs/libXScrnSaver
27
	                       x11-libs/libXScrnSaver
27
					x11-proto/scrnsaverproto )"
28
	                       x11-proto/scrnsaverproto )
29
	                       virtual/x11 ) )"
30
28
31
DEPEND="${RDEPEND}
29
DEPEND="${RDEPEND}
32
	>=dev-util/pkgconfig-0.12.0
30
	>=dev-util/pkgconfig-0.12.0
33
	>=sys-apps/sed-4.1.4-r1"
31
	>=sys-apps/sed-4.1.4-r1"
32
SITEFILE=50${PN}-gentoo.el
34
33
35
src_unpack()
34
src_unpack()
36
{
35
{
Lines 73-92 Link Here
73
src_compile()
72
src_compile()
74
{
73
{
75
	local crypto_support="--disable-crypto"
74
	local crypto_support="--disable-crypto"
75
	local emacs_support="--disable-emacs"
76
76
77
	use emacs 		 && emacs_support="--enable-emacs --with-lispdir=${SITELISP}/${PN}"
77
	use opensslcrypt && crypto_support="--enable-crypto=openssl"
78
	use opensslcrypt && crypto_support="--enable-crypto=openssl"
78
	use crypt        && crypto_support="--enable-crypto=libgcrypt"
79
	use crypt        && crypto_support="--enable-crypto=libgcrypt"
79
80
80
	econf                                      \
81
	econf                                      \
81
		--sbindir=/sbin                        \
82
		--sbindir=/sbin                        \
82
		--disable-optimizations                \
83
		--disable-optimizations                \
83
		`use_enable emacs`                     \
84
		`use_enable pam`                       \
84
		`use_enable pam`                       \
85
		`use_enable static static-build`       \
85
		`use_enable static static-build`       \
86
		`use_enable gpm gpm-lock`              \
86
		`use_enable gpm gpm-lock`              \
87
		`use_enable X x-support`               \
87
		`use_enable X x-support`               \
88
		`use_enable directfb DirectFB-support` \
88
		`use_enable directfb DirectFB-support` \
89
		${crypto_support}                      \
89
		${crypto_support}                      \
90
		${emacs_support}					   \
90
		|| die "Configuration failed"
91
		|| die "Configuration failed"
91
	emake || die "Compilation failed"
92
	emake || die "Compilation failed"
92
}
93
}
Lines 98-122 Link Here
98
	dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
99
	dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
99
100
100
	# Install the program
101
	# Install the program
101
	make DESTDIR=${D} install || die "Installation failed"
102
	emake DESTDIR="${D}" install || die "Installation failed"
102
103
103
	# Set the settings file umask to 600, in case somebody
104
	# Set the settings file umask to 600, in case somebody
104
	# wants to make use of the autologin feature
105
	# wants to make use of the autologin feature
105
	/bin/chmod 600 ${D}/etc/qingy/settings
106
	/bin/chmod 600 "${D}/etc/qingy/settings"
106
107
107
	# Install Gentoo theme
108
	# Install Gentoo theme
108
	dodir /usr/share/${PN}/themes/gentoo
109
	dodir /usr/share/${PN}/themes/gentoo
109
	cp ${WORKDIR}/gentoo/* ${D}/usr/share/${PN}/themes/gentoo \
110
	cp "${WORKDIR}"/gentoo/* "${D}/usr/share/${PN}/themes/gentoo" \
110
		|| die "Gentoo theme installation failed"
111
		|| die "Gentoo theme installation failed"
111
112
112
	# Alter config file so that it uses our theme
113
	# Alter config file so that it uses our theme
113
	sed -i 's/theme = "default"/theme = "gentoo"/' ${D}/etc/${PN}/settings
114
	sed -i 's/theme = "default"/theme = "gentoo"/' "${D}/etc/${PN}/settings"
114
115
115
	# Install log rotation policy if user wants it
116
	# Install log rotation policy if user wants it
116
	if use logrotate; then
117
	if use logrotate; then
117
		insinto /etc/logrotate.d
118
		insinto /etc/logrotate.d
118
		newins ${FILESDIR}/${PN}-logrotate ${PN} || die "Log rotation policy installation failed"
119
		newins "${FILESDIR}/${PN}-logrotate" ${PN} || die "Log rotation policy installation failed"
119
	fi
120
	fi
121
122
	use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
120
}
123
}
121
124
122
pkg_postinst()
125
pkg_postinst()
Lines 137-140 Link Here
137
		ewarn "message. If this is your case, please remove /etc/qingy/public_key"
140
		ewarn "message. If this is your case, please remove /etc/qingy/public_key"
138
		ewarn "and /etc/qingy/private_key and run qingy-keygen again..."
141
		ewarn "and /etc/qingy/private_key and run qingy-keygen again..."
139
	fi
142
	fi
143
144
	use emacs && elisp-site-regen
145
}
146
147
pkg_postrm() {
148
	use emacs && elisp-site-regen
140
}
149
}

Return to bug 184318