From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04C8E1382C5 for ; Fri, 15 May 2020 19:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36613E0A81; Fri, 15 May 2020 19:32:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1466AE0A81 for ; Fri, 15 May 2020 19:32:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 543F334EFF3 for ; Fri, 15 May 2020 19:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A3CD239 for ; Fri, 15 May 2020 19:32:44 +0000 (UTC) From: "Michele Santullo" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michele Santullo" Message-ID: <1589571108.a61c4360f9854677b83189b0bd473166fe28a2c6.santullo@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/wren/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/wren/wren-0.2.0-r1.ebuild dev-libs/wren/wren-0.2.0.ebuild dev-libs/wren/wren-9999.ebuild X-VCS-Directories: dev-libs/wren/ X-VCS-Committer: santullo X-VCS-Committer-Name: Michele Santullo X-VCS-Revision: a61c4360f9854677b83189b0bd473166fe28a2c6 X-VCS-Branch: dev Date: Fri, 15 May 2020 19:32:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: db9afd36-ab8e-4428-9921-42b8856e45d5 X-Archives-Hash: 227efbd0784a18f749829a237dbe2a34 commit: a61c4360f9854677b83189b0bd473166fe28a2c6 Author: Michele Santullo posteo net> AuthorDate: Fri May 15 19:31:48 2020 +0000 Commit: Michele Santullo posteo 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 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 }