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

Collapse All | Expand All

(-)glui-2.1_beta-r3.ebuild (-14 / +19 lines)
Lines 1-34 Link Here
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
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: $
3
# $Header: $
4
4
# Initial ebuild from steven knight <steven.knight@unh.edu>, in bug 23207
5
# Initial ebuild from steven knight <steven.knight@unh.edu>, in bug 23207
5
# Updated by Daniel Westermann-Clark <afn41511@afn.org>
6
# Updated by Daniel Westermann-Clark <afn41511@afn.org>
7
# half-heartedly updated by Colin Macdonald <cbm@sfu.ca>
6
8
7
#inherit libtool eutils
8
inherit eutils
9
inherit eutils
9
10
10
# The upstream tarball uses a poor naming convention
11
# The upstream tarball uses a different naming convention
11
MY_P=${PN}_v${PV/./_}
12
MY_P=${PN}_v${PV/./_}
12
MY_PV=${PV/_beta/}
13
DESCRIPTION="GLUI is a GLUT-based C++ user interface library"
13
DESCRIPTION="GLUI is a GLUT-based C++ user interface library"
14
SRC_URI="http://www.cs.unc.edu/~rademach/glui/src/release/${MY_P}.tar.gz"
14
HOMEPAGE="http://www.nigels.com/glt/glui/"
15
SRC_URI="http://www.nigels.com/glt/glui/${MY_P}.tgz"
15
16
16
# Set the source directory, since the upstream tarball uses a poor naming
17
# Set the source directory, since the upstream tarball uses a different naming
17
# convention
18
# convention
18
S=${WORKDIR}/${MY_P}
19
S=${WORKDIR}/${MY_P}
19
20
20
# This patch is based on:
21
# This patch is based on:
21
# http://http.us.debian.org/debian/pool/main/g/glui/glui_2.1.0.beta-2.diff.gz
22
# http://http.us.debian.org/debian/pool/main/g/glui/glui_2.2-1.diff.gz
23
# (though that patch creates a Makefile which still refers to version 2.1
22
#
24
#
23
# Removed the Debian-specific files; removed the broken upstream Makefiles;
25
# Removed the Debian-specific files; removed the broken upstream Makefiles;
24
# removed the explicit setting of CC, CXX, CFLAGS, CXXFLAGS, and LDFLAGS;
26
# removed the explicit setting of CC, CXX, CFLAGS, CXXFLAGS, and LDFLAGS;
25
# and added building of the shared library
27
# and added building of the shared library
26
GLUI_DEBIAN_PATCH="glui-2.1_beta-r3-debian.diff"
28
GLUI_DEBIAN_PATCH="glui-2.2-r1-debian.diff"
27
29
28
SLOT="0"
30
SLOT="0"
29
31
30
LICENSE="LGPL-2"
32
LICENSE="LGPL-2"
31
KEYWORDS="-* ~x86"
33
KEYWORDS="~x86"
32
34
33
DEPEND="virtual/opengl
35
DEPEND="virtual/opengl
34
	virtual/glut"
36
	virtual/glut"
Lines 37-42 Link Here
37
src_unpack() { 
39
src_unpack() { 
38
	unpack ${A}
40
	unpack ${A}
39
	epatch ${FILESDIR}/${GLUI_DEBIAN_PATCH} || die "epatch failed"
41
	epatch ${FILESDIR}/${GLUI_DEBIAN_PATCH} || die "epatch failed"
42
	rm ${S}/makefile
43
	rm ${S}/makefile.bak
40
}
44
}
41
45
42
src_compile() {
46
src_compile() {
Lines 46-56 Link Here
46
src_install() {
50
src_install() {
47
	# This doesn't use einstall, since the Makefile does not have an install
51
	# This doesn't use einstall, since the Makefile does not have an install
48
	# target
52
	# target
49
	dolib.a *.a
53
	dolib.a lib/libglui.a
50
54
51
	dolib.so libglui.so.${MY_PV}
55
	dolib.so lib/libglui.so.${PV}
52
	dosym libglui.so.${MY_PV} /usr/lib/libglui.so.${MY_PV/.1/}
56
	# strip minor version (I'm sure there is a better way)
53
	dosym libglui.so.${MY_PV} /usr/lib/libglui.so
57
	dosym libglui.so.${PV} /usr/lib/libglui.so.${PV/.?/}
58
	dosym libglui.so.${PV} /usr/lib/libglui.so
54
59
55
	insinto /usr/include/GL
60
	insinto /usr/include/GL
56
	doins glui.h
61
	doins glui.h
Lines 60-66 Link Here
60
65
61
pkg_postinst() {
66
pkg_postinst() {
62
	einfo "To use this library, link using -lglui and include /usr/include/GL/glui.h"
67
	einfo "To use this library, link using -lglui and include /usr/include/GL/glui.h"
63
        einfo
68
	einfo
64
	einfo "Note: Examples are not included in this release, pending the creation of"
69
	einfo "Note: Examples are not included in this release, pending the creation of"
65
        einfo "an updated Makefile"
70
	einfo "an updated Makefile"
66
}
71
}

Return to bug 23207