All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage
@ 2020-01-10 10:04 Gianfranco Costamagna
  2020-01-10 14:19 ` Mittal, Anuj
  0 siblings, 1 reply; 5+ messages in thread
From: Gianfranco Costamagna @ 2020-01-10 10:04 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Gianfranco Costamagna, Gianfranco Costamagna

Thanks to Khem Raj for the suggestion, the location is similar to the one used by Debian packaging

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
---
 meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
index 8a2a3e1b8..9562809a8 100644
--- a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
+++ b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
@@ -30,3 +30,12 @@ SRCREV= "c6d7e295bf5a0ab9b5f896720cc1a0e0fdc397a7"
 S = "${WORKDIR}/git"
 
 inherit cmake
+
+PACKAGES =+ "${PN}-examples"
+
+FILES_${PN}-examples = "${docdir}"
+
+do_install_append() {
+	install -d ${D}${docdir}/${PN}
+	cp -R ${S}/examples ${D}${docdir}/${PN}
+}
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage
  2020-01-10 10:04 [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage Gianfranco Costamagna
@ 2020-01-10 14:19 ` Mittal, Anuj
  2020-01-11  5:38   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Mittal, Anuj @ 2020-01-10 14:19 UTC (permalink / raw)
  To: costamagna.gianfranco, openembedded-devel
  Cc: locutusofborg, costamagnagianfranco

On Fri, 2020-01-10 at 11:04 +0100, Gianfranco Costamagna wrote:
> +do_install_append() {
> +	install -d ${D}${docdir}/${PN}
> +	cp -R ${S}/examples ${D}${docdir}/${PN}

I think these should be BPN instead of PN so this works with multilib.

Thanks,

Anuj

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage
  2020-01-10 14:19 ` Mittal, Anuj
@ 2020-01-11  5:38   ` Khem Raj
  2020-01-11  5:39     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2020-01-11  5:38 UTC (permalink / raw)
  To: Mittal, Anuj
  Cc: locutusofborg, costamagna.gianfranco, costamagnagianfranco,
	openembedded-devel

On Fri, Jan 10, 2020 at 6:20 AM Mittal, Anuj <anuj.mittal@intel.com> wrote:
>
> On Fri, 2020-01-10 at 11:04 +0100, Gianfranco Costamagna wrote:
> > +do_install_append() {
> > +     install -d ${D}${docdir}/${PN}
> > +     cp -R ${S}/examples ${D}${docdir}/${PN}
>
> I think these should be BPN instead of PN so this works with multilib.

right. Since I have merged this patch, perhaps a new patch addressing
this would be good.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage
  2020-01-11  5:38   ` Khem Raj
@ 2020-01-11  5:39     ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2020-01-11  5:39 UTC (permalink / raw)
  To: Mittal, Anuj
  Cc: locutusofborg, costamagna.gianfranco, costamagnagianfranco,
	openembedded-devel

On Fri, Jan 10, 2020 at 9:38 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Fri, Jan 10, 2020 at 6:20 AM Mittal, Anuj <anuj.mittal@intel.com> wrote:
> >
> > On Fri, 2020-01-10 at 11:04 +0100, Gianfranco Costamagna wrote:
> > > +do_install_append() {
> > > +     install -d ${D}${docdir}/${PN}
> > > +     cp -R ${S}/examples ${D}${docdir}/${PN}
> >
> > I think these should be BPN instead of PN so this works with multilib.
>
> right. Since I have merged this patch, perhaps a new patch addressing
> this would be good.

I never mind, this patch was replaced with v2 eventually so its addressed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage
@ 2020-01-10 14:33 Gianfranco Costamagna
  0 siblings, 0 replies; 5+ messages in thread
From: Gianfranco Costamagna @ 2020-01-10 14:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Gianfranco Costamagna, Gianfranco Costamagna

Thanks to Khem Raj for the suggestion, the location is similar to the one used by Debian packaging

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
---
 meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
index 8a2a3e1b8..4303f2473 100644
--- a/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
+++ b/meta-oe/recipes-support/websocketpp/websocketpp_0.8.1.bb
@@ -30,3 +30,12 @@ SRCREV= "c6d7e295bf5a0ab9b5f896720cc1a0e0fdc397a7"
 S = "${WORKDIR}/git"
 
 inherit cmake
+
+PACKAGES =+ "${PN}-examples"
+
+FILES_${PN}-examples = "${docdir}"
+
+do_install_append() {
+	install -d ${D}${docdir}/${BPN}
+	cp -R ${S}/examples ${D}${docdir}/${BPN}
+}
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-11  5:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 10:04 [meta-oe][PATCH] websocketpp: also install examples in a new -examples subpackage Gianfranco Costamagna
2020-01-10 14:19 ` Mittal, Anuj
2020-01-11  5:38   ` Khem Raj
2020-01-11  5:39     ` Khem Raj
2020-01-10 14:33 Gianfranco Costamagna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.