Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 598830 | Differences between
and this patch

Collapse All | Expand All

(-)/home/evidgbo/usr/roots/gentoo/usr/portage/x11-wm/fvwm/fvwm-2.6.5-r1.ebuild (-15 / +14 lines)
Lines 83-89 Link Here
83
}
83
}
84
84
85
src_configure() {
85
src_configure() {
86
	local myconf="--libexecdir=/usr/lib --with-imagepath=/usr/include/X11/bitmaps:/usr/include/X11/pixmaps:/usr/share/icons/fvwm --enable-package-subdirs --without-gnome"
86
	local myconf="--docdir=${EPREFIX}/usr/doc/${P} --with-imagepath=${EPREFIX}/usr/include/X11/bitmaps:${EPREFIX}/usr/include/X11/pixmaps:${EPREFIX}/usr/share/icons/fvwm --enable-package-subdirs --without-gnome"
87
87
88
	# Non-upstream email where bugs should be sent; used in fvwm-bug.
88
	# Non-upstream email where bugs should be sent; used in fvwm-bug.
89
	export FVWM_BUGADDR="desktop-wm@gentoo.org"
89
	export FVWM_BUGADDR="desktop-wm@gentoo.org"
Lines 112-151 Link Here
112
		$(use_with stroke stroke-library) \
112
		$(use_with stroke stroke-library) \
113
		$(use_enable svg rsvg) \
113
		$(use_enable svg rsvg) \
114
		$(use_enable truetype xft) \
114
		$(use_enable truetype xft) \
115
		$(use_enable xinerama) \
115
		$(use_enable xinerama)
116
		--docdir="/usr/share/doc/${P}"
117
}
116
}
118
117
119
src_install() {
118
src_install() {
120
	emake DESTDIR="${D}" docdir="/usr/share/doc/${P}" install
119
	emake DESTDIR="${D}" docdir="${D}/usr/share/doc/${P}" install
121
120
122
	# These are always removed, because gentoo doesn't have anymore
121
	# These are always removed, because gentoo doesn't have anymore
123
	# a dev-perl/gtk-perl package, so, these modules are pointless.
122
	# a dev-perl/gtk-perl package, so, these modules are pointless.
124
	rm -f "${D}/usr/share/fvwm/perllib/FVWM/Module/Gtk.pm"
123
	rm -f "${ED}/usr/share/fvwm/perllib/FVWM/Module/Gtk.pm"
125
	find "${D}" -name '*FvwmGtkDebug*' -exec rm -f '{}' \; 2>/dev/null
124
	find "${ED}" -name '*FvwmGtkDebug*' -exec rm -f '{}' \; 2>/dev/null
126
125
127
	if ! use lock; then
126
	if ! use lock; then
128
		find "${D}" -name '*fvwm-menu-xlock' -exec rm -f '{}' \; 2>/dev/null
127
		find "${ED}" -name '*fvwm-menu-xlock' -exec rm -f '{}' \; 2>/dev/null
129
	fi
128
	fi
130
129
131
	if use perl; then
130
	if use perl; then
132
		if ! use tk; then
131
		if ! use tk; then
133
			rm -f "${D}/usr/share/fvwm/perllib/FVWM/Module/Tk.pm"
132
			rm -f "${ED}/usr/share/fvwm/perllib/FVWM/Module/Tk.pm"
134
			if ! use gtk2-perl; then # no tk and no gtk2 bindings
133
			if ! use gtk2-perl; then # no tk and no gtk2 bindings
135
				rm -f "${D}/usr/share/fvwm/perllib/FVWM/Module/Toolkit.pm"
134
				rm -f "${ED}/usr/share/fvwm/perllib/FVWM/Module/Toolkit.pm"
136
				find "${D}/usr/share/fvwm/perllib" -depth -type d -exec rmdir '{}' \; 2>/dev/null
135
				find "${ED}/usr/share/fvwm/perllib" -depth -type d -exec rmdir '{}' \; 2>/dev/null
137
			fi
136
			fi
138
		fi
137
		fi
139
138
140
		# Now, the Gtk2.pm file, it will require dev-perl/gtk2-perl
139
		# Now, the Gtk2.pm file, it will require dev-perl/gtk2-perl
141
		# so it implies gtk2 as well. That's why we need another use flag.
140
		# so it implies gtk2 as well. That's why we need another use flag.
142
		if ! use gtk2-perl; then
141
		if ! use gtk2-perl; then
143
			rm -f "${D}/usr/share/fvwm/perllib/FVWM/Module/Gtk2.pm"
142
			rm -f "${ED}/usr/share/fvwm/perllib/FVWM/Module/Gtk2.pm"
144
		fi
143
		fi
145
	else
144
	else
146
		# Completely wipe it if ! use perl
145
		# Completely wipe it if ! use perl
147
		rm -rf "${D}/usr/bin/fvwm-perllib" \
146
		rm -rf "${ED}/usr/bin/fvwm-perllib" \
148
			"${D}/usr/share/man/man1/fvwm-perllib.1"
147
			"${ED}/usr/share/man/man1/fvwm-perllib.1"
149
	fi
148
	fi
150
149
151
	# Utility for testing FVWM behaviour by creating a simple window with
150
	# Utility for testing FVWM behaviour by creating a simple window with
Lines 155-162 Link Here
155
		newdoc "${S}/tests/hints/README" README.hints
154
		newdoc "${S}/tests/hints/README" README.hints
156
	fi
155
	fi
157
156
158
	dodir /etc/X11/Sessions
157
	dodir "/etc/X11/Sessions"
159
	echo "/usr/bin/fvwm" > "${D}/etc/X11/Sessions/${PN}" || die
158
	echo "${EPREFIX}/usr/bin/fvwm" > "${ED}/etc/X11/Sessions/${PN}" || die
160
	fperms a+x /etc/X11/Sessions/${PN} || die
159
	fperms a+x /etc/X11/Sessions/${PN} || die
161
160
162
	dodoc AUTHORS ChangeLog NEWS README \
161
	dodoc AUTHORS ChangeLog NEWS README \

Return to bug 598830