diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2014-05-06 12:59:54 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 13:00:33 +0100 |
commit | 5ae4aadcae85c129aef6dd6ce2dcdd55e8ae9053 (patch) | |
tree | 1c7ea8d3302a017f908c6c2f2453960b4ddcc6f2 | |
parent | cc9d01fe646a099edeba660f8d616bc06f64b285 (diff) | |
download | poky-5ae4aadcae85c129aef6dd6ce2dcdd55e8ae9053.tar.gz |
tcl: cleanup
Changes:
- add missing licence file: tcl
- use binconfig to patch tclConfig.sh paths
- avoid subshell in do_configure()
- use ${PV}
(From OE-Core rev: 6ef8ac2ff97a408d4311ebebbafcfaf0a84be4d9)
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/files/common-licenses/tcl | 40 | ||||
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 34 |
2 files changed, 60 insertions, 14 deletions
diff --git a/meta/files/common-licenses/tcl b/meta/files/common-licenses/tcl new file mode 100644 index 0000000000..d8049cd9e7 --- /dev/null +++ b/meta/files/common-licenses/tcl | |||
@@ -0,0 +1,40 @@ | |||
1 | This software is copyrighted by the Regents of the University of | ||
2 | California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState | ||
3 | Corporation and other parties. The following terms apply to all files | ||
4 | associated with the software unless explicitly disclaimed in | ||
5 | individual files. | ||
6 | |||
7 | The authors hereby grant permission to use, copy, modify, distribute, | ||
8 | and license this software and its documentation for any purpose, provided | ||
9 | that existing copyright notices are retained in all copies and that this | ||
10 | notice is included verbatim in any distributions. No written agreement, | ||
11 | license, or royalty fee is required for any of the authorized uses. | ||
12 | Modifications to this software may be copyrighted by their authors | ||
13 | and need not follow the licensing terms described here, provided that | ||
14 | the new terms are clearly indicated on the first page of each file where | ||
15 | they apply. | ||
16 | |||
17 | IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY | ||
18 | FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES | ||
19 | ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY | ||
20 | DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE | ||
21 | POSSIBILITY OF SUCH DAMAGE. | ||
22 | |||
23 | THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, | ||
24 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, | ||
25 | FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE | ||
26 | IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE | ||
27 | NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR | ||
28 | MODIFICATIONS. | ||
29 | |||
30 | GOVERNMENT USE: If you are acquiring this software on behalf of the | ||
31 | U.S. government, the Government shall have only "Restricted Rights" | ||
32 | in the software and related documentation as defined in the Federal | ||
33 | Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you | ||
34 | are acquiring the software on behalf of the Department of Defense, the | ||
35 | software shall be classified as "Commercial Computer Software" and the | ||
36 | Government shall have only "Restricted Rights" as defined in Clause | ||
37 | 252.227-7014 (b) (3) of DFARs. Notwithstanding the foregoing, the | ||
38 | authors grant the U.S. Government and others acting in its behalf | ||
39 | permission to use and distribute the software in accordance with the | ||
40 | terms specified in this license. | ||
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb index 9d35da10a1..27f73f2ce2 100644 --- a/meta/recipes-devtools/tcltk/tcl_8.6.1.bb +++ b/meta/recipes-devtools/tcltk/tcl_8.6.1.bb | |||
@@ -1,19 +1,21 @@ | |||
1 | SUMMARY = "Tool Command Language" | 1 | SUMMARY = "Tool Command Language" |
2 | LICENSE = "BSD-3-Clause" | ||
3 | SECTION = "devel/tcltk" | ||
4 | HOMEPAGE = "http://tcl.sourceforge.net" | 2 | HOMEPAGE = "http://tcl.sourceforge.net" |
5 | DEPENDS = "tcl-native zlib" | 3 | SECTION = "devel/tcltk" |
4 | |||
5 | # http://www.tcl.tk/software/tcltk/license.html | ||
6 | LICENSE = "tcl & BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://../license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 7 | LIC_FILES_CHKSUM = "file://../license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
7 | file://../compat/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 8 | file://../compat/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
8 | file://../library/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 9 | file://../library/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
9 | file://../macosx/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 10 | file://../macosx/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
10 | file://../tests/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 11 | file://../tests/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
11 | file://../win/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ | 12 | file://../win/license.terms;md5=3c6f62c07835353e36f0db550ccfb65a \ |
12 | " | 13 | " |
13 | 14 | ||
14 | BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ | 15 | DEPENDS = "tcl-native zlib" |
15 | file://tcl-add-soname.patch" | ||
16 | 16 | ||
17 | BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \ | ||
18 | file://tcl-add-soname.patch" | ||
17 | SRC_URI = "${BASE_SRC_URI} \ | 19 | SRC_URI = "${BASE_SRC_URI} \ |
18 | file://fix_non_native_build_issue.patch \ | 20 | file://fix_non_native_build_issue.patch \ |
19 | file://fix_issue_with_old_distro_glibc.patch \ | 21 | file://fix_issue_with_old_distro_glibc.patch \ |
@@ -21,24 +23,26 @@ SRC_URI = "${BASE_SRC_URI} \ | |||
21 | file://tcl-remove-hardcoded-install-path.patch \ | 23 | file://tcl-remove-hardcoded-install-path.patch \ |
22 | file://alter-includedir.patch \ | 24 | file://alter-includedir.patch \ |
23 | file://run-ptest \ | 25 | file://run-ptest \ |
24 | " | 26 | " |
25 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" | 27 | SRC_URI[md5sum] = "aae4b701ee527c6e4e1a6f9c7399882e" |
26 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" | 28 | SRC_URI[sha256sum] = "16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514" |
27 | 29 | ||
28 | SRC_URI_class-native = "${BASE_SRC_URI}" | 30 | SRC_URI_class-native = "${BASE_SRC_URI}" |
29 | 31 | ||
30 | S = "${WORKDIR}/tcl${PV}/unix" | 32 | S = "${WORKDIR}/${BPN}${PV}/unix" |
31 | 33 | ||
32 | VER = "8.6.1" | 34 | VER = "${PV}" |
33 | 35 | ||
34 | inherit autotools ptest | 36 | inherit autotools ptest binconfig |
35 | 37 | ||
36 | DEPENDS_class-native = "zlib-native" | 38 | DEPENDS_class-native = "zlib-native" |
37 | 39 | ||
38 | EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}" | 40 | EXTRA_OECONF = "--enable-threads --disable-rpath --libdir=${libdir}" |
39 | 41 | ||
40 | do_configure() { | 42 | do_configure() { |
41 | ( cd ${S}; gnu-configize ) | 43 | cd ${S} |
44 | gnu-configize | ||
45 | cd ${B} | ||
42 | oe_runconf | 46 | oe_runconf |
43 | } | 47 | } |
44 | 48 | ||
@@ -53,13 +57,12 @@ do_install() { | |||
53 | sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g" tclConfig.sh | 57 | sed -i "s+-L${B}+-L${STAGING_LIBDIR}+g" tclConfig.sh |
54 | sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh | 58 | sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh |
55 | sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh | 59 | sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh |
56 | sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh | 60 | sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh |
57 | install -d ${D}${bindir_crossscripts} | 61 | install -d ${D}${bindir_crossscripts} |
58 | install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} | 62 | install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} |
59 | install -m 0755 tclConfig.sh ${D}${libdir} | 63 | install -m 0755 tclConfig.sh ${D}${libdir} |
60 | cd .. | 64 | cd .. |
61 | for dir in compat generic unix | 65 | for dir in compat generic unix; do |
62 | do | ||
63 | install -d ${D}${includedir}/${BPN}${VER}/$dir | 66 | install -d ${D}${includedir}/${BPN}${VER}/$dir |
64 | install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/ | 67 | install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/ |
65 | done | 68 | done |
@@ -91,5 +94,8 @@ do_install_ptest() { | |||
91 | cp -r ${S}/../tests ${D}${PTEST_PATH} | 94 | cp -r ${S}/../tests ${D}${PTEST_PATH} |
92 | } | 95 | } |
93 | 96 | ||
97 | # Fix some paths that might be used by Tcl extensions | ||
98 | BINCONFIG_GLOB = "*Config.sh" | ||
99 | |||
94 | # Fix the path in sstate | 100 | # Fix the path in sstate |
95 | SSTATE_SCAN_FILES += "*Config.sh" | 101 | SSTATE_SCAN_FILES += "*Config.sh" |