Skip to contentSkip to conversation

libplayer: Use `${PN}` instead of `libplayer`.

PATCH In review Paul Menzel 2 participants 3 messages Apr 2, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libplayer: Use `${PN}` instead of `libplayer`.

---
 recipes/libplayer/libplayer.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/libplayer/libplayer.inc +1 -1
index 823e4b5..ea74aee 100644
@@ -6,7 +6,7 @@ DEPENDS = "virtual/libx11 libxcb mplayer gstreamer"
 
 INC_PR = "r1"
 
-SRC_URI = "http://libplayer.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
+SRC_URI = "http://${PN}.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
 
 inherit autotools pkgconfig
 
Signature · 1 line
1.7.0.3
#1 lore raw
Quoted 14 lines · Paul Menzel

---
 recipes/libplayer/libplayer.inc |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/libplayer/libplayer.inc +0 -0
index 823e4b5..ea74aee 100644
@@ -6,7 +6,7 @@ DEPENDS = "virtual/libx11 libxcb mplayer gstreamer"
 

 INC_PR = "r1"

recipes/libplayer/libplayer.inc DEPENDS = "virtual/libx11 libxcb mplayer gstreamer" · line 9

Quoted 2 lines
recipes/libplayer/libplayer.inc +1 -1
-SRC_URI = "http://libplayer.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
+SRC_URI = "http://${PN}.geexbox.org/releases/${P}.tar.bz2;name=${PN}"

is there any advantage of using PN here ?

Quoted 12 lines

 inherit autotools pkgconfig

--
1.7.0.3

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

Am Freitag, den 02.04.2010, 11:21 -0700 schrieb Khem Raj:

Quoted 14 lines
Quoted 12 lines · Paul Menzel
---
 recipes/libplayer/libplayer.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/libplayer/libplayer.inc +0 -0
index 823e4b5..ea74aee 100644
@@ -6,7 +6,7 @@ DEPENDS = "virtual/libx11 libxcb mplayer gstreamer"
 
Quoted 6 lines

recipes/libplayer/libplayer.inc DEPENDS = "virtual/libx11 libxcb mplayer gstreamer" · line 9

Quoted 4 lines
recipes/libplayer/libplayer.inc +1 -1
 INC_PR = "r1"
 
-SRC_URI = "http://libplayer.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
+SRC_URI = "http://${PN}.geexbox.org/releases/${P}.tar.bz2;name=${PN}"

is there any advantage of using PN here ?

I guess it is mostly taste.

But I see two small advantages in rare use cases.

1. If the recipe is taken as a template for another one, less adaptations have to be made.
2. If they should rename the program you only have to change the recipe name.

[…]

Thanks,

Paul