commit: a61c4360f9854677b83189b0bd473166fe28a2c6
Author: Michele Santullo <m.santullo <AT> posteo <DOT> net>
AuthorDate: Fri May 15 19:31:48 2020 +0000
Commit: Michele Santullo <m.santullo <AT> posteo <DOT> net>
CommitDate: Fri May 15 19:31:48 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a61c4360
dev-libs/wren: install headers and pkgconfig file
Original makefile doesn't generate a .pc file so
I'm making one myself from inside the ebuild.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michele Santullo <m.santullo <AT> posteo.net>
.../wren/{wren-0.2.0.ebuild => wren-0.2.0-r1.ebuild} | 16 ++++++++++++++++
dev-libs/wren/wren-9999.ebuild | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
diff --git a/dev-libs/wren/wren-0.2.0.ebuild
b/dev-libs/wren/wren-0.2.0-r1.ebuild
similarity index 70%
rename from dev-libs/wren/wren-0.2.0.ebuild
rename to dev-libs/wren/wren-0.2.0-r1.ebuild
index 3491cfb..11b147b 100644
--- a/dev-libs/wren/wren-0.2.0.ebuild
+++ b/dev-libs/wren/wren-0.2.0-r1.ebuild
@@ -48,6 +48,17 @@ src_compile() {
# targets="${targets} api_test unit_test"
#fi
+ echo "prefix=\"${EPREFIX}/usr\"" > ${PN}.pc
+ echo "libdir=\"\${prefix}/$(get_libdir)\"" >> ${PN}.pc
+ echo "includedir=\"\${prefix}/include\"" >> ${PN}.pc
+ echo "" >> ${PN}.pc
+ echo "Name: ${PN}" >> ${PN}.pc
+ echo "Description: ${DESCRIPTION}" >> ${PN}.pc
+ echo "URL: ${HOMEPAGE}" >> ${PN}.pc
+ echo "Version: ${PV}" >> ${PN}.pc
+ echo "Libs: \"-L\${libdir}\" -l${PN}" >> ${PN}.pc
+ echo "Cflags: \"-I\${includedir}\"" >> ${PN}.pc
+
tc-export AR CC
emake -f util/wren.mk LIBUV_DIR="${EPREFIX}/usr"
LIBUV="${EPREFIX}/usr/$(get_libdir)/libuv.so" VERBOSE=1 ${targets}
}
@@ -60,4 +71,9 @@ src_install() {
dolib.a lib/libwren.a
fi
dolib.so lib/libwren.so
+ doheader src/include/wren.h
+ doheader src/include/wren.hpp
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
}
diff --git a/dev-libs/wren/wren-9999.ebuild b/dev-libs/wren/wren-9999.ebuild
index 3491cfb..11b147b 100644
--- a/dev-libs/wren/wren-9999.ebuild
+++ b/dev-libs/wren/wren-9999.ebuild
@@ -48,6 +48,17 @@ src_compile() {
# targets="${targets} api_test unit_test"
#fi
+ echo "prefix=\"${EPREFIX}/usr\"" > ${PN}.pc
+ echo "libdir=\"\${prefix}/$(get_libdir)\"" >> ${PN}.pc
+ echo "includedir=\"\${prefix}/include\"" >> ${PN}.pc
+ echo "" >> ${PN}.pc
+ echo "Name: ${PN}" >> ${PN}.pc
+ echo "Description: ${DESCRIPTION}" >> ${PN}.pc
+ echo "URL: ${HOMEPAGE}" >> ${PN}.pc
+ echo "Version: ${PV}" >> ${PN}.pc
+ echo "Libs: \"-L\${libdir}\" -l${PN}" >> ${PN}.pc
+ echo "Cflags: \"-I\${includedir}\"" >> ${PN}.pc
+
tc-export AR CC
emake -f util/wren.mk LIBUV_DIR="${EPREFIX}/usr"
LIBUV="${EPREFIX}/usr/$(get_libdir)/libuv.so" VERBOSE=1 ${targets}
}
@@ -60,4 +71,9 @@ src_install() {
dolib.a lib/libwren.a
fi
dolib.so lib/libwren.so
+ doheader src/include/wren.h
+ doheader src/include/wren.hpp
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc
}