|
Lines 15-29
Link Here
|
| 15 |
|
15 |
|
| 16 |
DEPEND="berkdb? ( sys-libs/db )" |
16 |
DEPEND="berkdb? ( sys-libs/db )" |
| 17 |
|
17 |
|
| 18 |
pkg_setup() { |
|
|
| 19 |
# On OSX there is no user/group bin, see bug #96743 |
| 20 |
if use ppc-macos; |
| 21 |
then |
| 22 |
enewgroup bin |
| 23 |
enewuser bin -1 -1 -1 bin |
| 24 |
fi |
| 25 |
} |
| 26 |
|
| 27 |
src_unpack() { |
18 |
src_unpack() { |
| 28 |
unpack ${A} |
19 |
unpack ${A} |
| 29 |
cd "${S}" |
20 |
cd "${S}" |
|
Lines 38-48
Link Here
|
| 38 |
} |
29 |
} |
| 39 |
|
30 |
|
| 40 |
src_install() { |
31 |
src_install() { |
| 41 |
make INSTALL_ROOT="${D}" install || die |
32 |
# On OSX for example, the group of root is wheel, not root, so we |
|
|
33 |
# have to find this out dynamically. On Solaris we should use |
| 34 |
# /usr/xpg4/bin/id in order to make this work. |
| 35 |
local root_group=`id -gn root` |
| 36 |
|
| 37 |
make INSTALL_ROOT="${D}" \ |
| 38 |
BINOWN="root" BINGRP="${root_group}" \ |
| 39 |
install || die |
| 42 |
|
40 |
|
| 43 |
make \ |
41 |
make \ |
| 44 |
includedir=/usr/include/gdbm \ |
42 |
includedir=/usr/include/gdbm \ |
| 45 |
INSTALL_ROOT="${D}" \ |
43 |
INSTALL_ROOT="${D}" \ |
|
|
44 |
BINOWN="root" BINGRP="${root_group}" \ |
| 46 |
install-compat || die |
45 |
install-compat || die |
| 47 |
|
46 |
|
| 48 |
dodoc ChangeLog NEWS README |
47 |
dodoc ChangeLog NEWS README |