Lines 47-53
Link Here
|
47 |
|
47 |
|
48 |
# do the same for headers now |
48 |
# do the same for headers now |
49 |
# but since there are only two of them, just overwrite them |
49 |
# but since there are only two of them, just overwrite them |
50 |
cd ${ROOT}/usr/include |
50 |
cd "${ROOT}"/usr/include |
51 |
target=`find . -maxdepth 1 -type d -name 'db[0-9]*' | sort -n |cut -d/ -f2- | tail -n1` |
51 |
target=`find . -maxdepth 1 -type d -name 'db[0-9]*' | sort -n |cut -d/ -f2- | tail -n1` |
52 |
if [ -n "${target}" ] && [ -e "${target}/db.h" ] && ( ! [[ -e db.h ]] || [[ -h db.h ]] ); then |
52 |
if [ -n "${target}" ] && [ -e "${target}/db.h" ] && ( ! [[ -e db.h ]] || [[ -h db.h ]] ); then |
53 |
einfo "Creating db.h symlinks to ${target}" |
53 |
einfo "Creating db.h symlinks to ${target}" |
Lines 67-91
Link Here
|
67 |
# not everybody wants this wad of documentation as it is primarily API docs |
67 |
# not everybody wants this wad of documentation as it is primarily API docs |
68 |
if use doc; then |
68 |
if use doc; then |
69 |
dodir /usr/share/doc/${PF}/html |
69 |
dodir /usr/share/doc/${PF}/html |
70 |
mv ${D}/usr/docs/* ${D}/usr/share/doc/${PF}/html/ |
70 |
mv "${D}"/usr/docs/* "${D}"/usr/share/doc/${PF}/html/ |
71 |
rm -rf ${D}/usr/docs |
71 |
rm -rf "${D}"/usr/docs |
72 |
else |
72 |
else |
73 |
rm -rf ${D}/usr/docs |
73 |
rm -rf "${D}"/usr/docs |
74 |
fi |
74 |
fi |
75 |
} |
75 |
} |
76 |
|
76 |
|
77 |
db_src_install_usrbinslot() { |
77 |
db_src_install_usrbinslot() { |
78 |
# slot all program names to avoid overwriting |
78 |
# slot all program names to avoid overwriting |
79 |
for fname in ${D}/usr/bin/db_* |
79 |
for fname in "${D}"/usr/bin/db_* |
80 |
do |
80 |
do |
81 |
mv ${fname} ${fname//\/db_/\/db${SLOT}_} |
81 |
mv "${fname}" "${fname//\/db_/\/db${SLOT}_}" |
82 |
done |
82 |
done |
83 |
} |
83 |
} |
84 |
|
84 |
|
85 |
db_src_install_headerslot() { |
85 |
db_src_install_headerslot() { |
86 |
# install all headers in a slotted location |
86 |
# install all headers in a slotted location |
87 |
dodir /usr/include/db${SLOT} |
87 |
dodir /usr/include/db${SLOT} |
88 |
mv ${D}/usr/include/*.h ${D}/usr/include/db${SLOT}/ |
88 |
mv "${D}"/usr/include/*.h "${D}"/usr/include/db${SLOT}/ |
89 |
} |
89 |
} |
90 |
|
90 |
|
91 |
db_src_install_usrlibcleanup() { |
91 |
db_src_install_usrlibcleanup() { |
Lines 97-118
Link Here
|
97 |
die "Calling clean_links while \$D not defined" |
97 |
die "Calling clean_links while \$D not defined" |
98 |
fi |
98 |
fi |
99 |
|
99 |
|
100 |
if [ -e ${LIB}/libdb.a ] && [ ! -e ${LIB}/libdb-${SLOT}.a ]; then |
100 |
if [ -e "${LIB}"/libdb.a ] && [ ! -e "${LIB}"/libdb-${SLOT}.a ]; then |
101 |
einfo "Moving libdb.a to a versioned name" |
101 |
einfo "Moving libdb.a to a versioned name" |
102 |
mv "${LIB}/libdb.a" "${LIB}/libdb-${SLOT}.a" |
102 |
mv "${LIB}/libdb.a" "${LIB}/libdb-${SLOT}.a" |
103 |
fi |
103 |
fi |
104 |
|
104 |
|
105 |
if [ -e ${LIB}/libdb_cxx.a ] && [ ! -e ${LIB}/libdb_cxx-${SLOT}.a ]; then |
105 |
if [ -e "${LIB}"/libdb_cxx.a ] && [ ! -e "${LIB}"/libdb_cxx-${SLOT}.a ]; then |
106 |
einfo "Moving libdb_cxx.a to a versioned name" |
106 |
einfo "Moving libdb_cxx.a to a versioned name" |
107 |
mv "${LIB}/libdb_cxx.a" "${LIB}/libdb_cxx-${SLOT}.a" |
107 |
mv "${LIB}/libdb_cxx.a" "${LIB}/libdb_cxx-${SLOT}.a" |
108 |
fi |
108 |
fi |
109 |
|
109 |
|
110 |
find ${LIB} -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \; |
110 |
find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \; |
111 |
find ${LIB} -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \; |
111 |
find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \; |
112 |
einfo "removing unversioned static archives" |
112 |
einfo "removing unversioned static archives" |
113 |
find ${LIB} -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \; |
113 |
find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \; |
114 |
|
114 |
|
115 |
rm -f ${D}/usr/include/db.h ${D}/usr/include/db_185.h ${LIB}/libdb.a ${LIB}/libdb_cxx.a |
115 |
rm -f "${D}"/usr/include/db.h "${D}"/usr/include/db_185.h ${LIB}/libdb.a ${LIB}/libdb_cxx.a |
116 |
} |
116 |
} |
117 |
|
117 |
|
118 |
db_src_test() { |
118 |
db_src_test() { |
Lines 120-126
Link Here
|
120 |
if useq tcl; then |
120 |
if useq tcl; then |
121 |
einfo "Running sys-libs/db testsuite" |
121 |
einfo "Running sys-libs/db testsuite" |
122 |
ewarn "This can take 6+ hours on modern machines" |
122 |
ewarn "This can take 6+ hours on modern machines" |
123 |
cd ${S} |
123 |
cd "${S}" |
124 |
echo 'source ../test/test.tcl' >testrunner.tcl |
124 |
echo 'source ../test/test.tcl' >testrunner.tcl |
125 |
echo 'run_std' >>testrunner.tcl |
125 |
echo 'run_std' >>testrunner.tcl |
126 |
tclsh testrunner.tcl |
126 |
tclsh testrunner.tcl |