[oe-commits] org.oe.dev p4: add p4.inc which defines the common p4_arch function
mickeyl commit
openembedded-commits at lists.openembedded.org
Fri Oct 13 10:35:59 UTC 2006
p4: add p4.inc which defines the common p4_arch function
Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 08b850dd4e1df4e1751532b79a9685dd41464df7
ViewMTN: http://monotone.openembedded.org/revision.psp?id=08b850dd4e1df4e1751532b79a9685dd41464df7
Files:
1
packages/p4/p4.inc
Diffs:
#
# mt diff -rea1e13afb31c0e3842b7c5aaa988233547a9d729 -r08b850dd4e1df4e1751532b79a9685dd41464df7
#
#
#
# patch "packages/p4/p4.inc"
# from [3636ad3214ae2dbe4d02b31c12f1efcebef211dc]
# to [4ecc2b4c7fbdbaadea59ea6c2b7811ca864c5ff2]
#
============================================================
--- packages/p4/p4.inc 3636ad3214ae2dbe4d02b31c12f1efcebef211dc
+++ packages/p4/p4.inc 4ecc2b4c7fbdbaadea59ea6c2b7811ca864c5ff2
@@ -1,20 +1,12 @@
# p4 .bb build file
# Copyright (C) 2006, Advanced Micro Devices, Inc. All Rights Reserved
# Released under the MIT license (see /COPYING)
-HOMEPAGE = "http://www.perforce.com"
DESCRIPTION = "Perforce client and server binaries"
+HOMEPAGE = "http://www.perforce.com"
MAINTAINER = "Raymond Danks <info-linux at geode.amd.com>"
LICENSE = "Perforce"
-def get_kernelmajorversion(p):
- import re
- r = re.compile("([0-9]+\.[0-9]+).*")
- m = r.match(p);
- if m:
- return m.group(1)
- return None
-
def p4_arch(d):
import bb, re
arch = bb.data.getVar('TARGET_ARCH', d, 1)
@@ -36,9 +28,8 @@ def p4_arch(d):
return "%s%s" % (os, arch)
-P4ARCH="${@p4_arch(d)}"
-P4BASEURL="http://filehost.perforce.com/perforce/r${PV}/bin.${P4ARCH}"
-S="${WORKDIR}"
+P4ARCH = "${@p4_arch(d)}"
+P4BASEURL = "http://filehost.perforce.com/perforce/r${PV}/bin.${P4ARCH}"
#Because these files are all named the same thing, regardless of version or arch
PREMIRRORS=""
@@ -51,6 +42,7 @@ SRC_URI="\
${P4BASEURL}/p4ftpd \
${P4BASEURL}/p4p \
${P4BASEURL}/p4web"
+S = "${WORKDIR}"
PACKAGES += " ${PN}-server"
FILES_${PN} = " ${bindir}/p4"
More information about the Openembedded-commits
mailing list