Ravenports generated: 22 Jan 2023 20:55
[ravenports.git] / bucket_57 / boost-jam
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               boost-jam
4 VERSION=                1.81.0
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Build tool from the boost.org
8 HOMEPAGE=               https://www.boost.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/
13 DISTFILE[1]=            boost_1_81_0.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   cpe c++:single
21
22 DISTNAME=               boost_1_81_0
23 EXTRACT_HEAD[1]=        {{TAR}} -xf
24 EXTRACT_TAIL[1]=        {{DISTNAME}}/tools/build/src/engine {{DISTNAME}}/LICENSE_1_0.txt
25
26 LICENSE=                CUSTOM1:single
27 LICENSE_NAME=           CUSTOM1:"Boost Software License - Version 1.0"
28 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/LICENSE_1_0.txt
29 LICENSE_SCHEME=         solo
30
31 CPE_PRODUCT=            boost
32 CPE_VENDOR=             boost
33 FPC_EQUIVALENT=         devel/boost-jam
34
35 BUILD_WRKSRC=           {{WRKSRC}}/tools/build/src/engine
36 BUILD_TARGET=           gcc
37
38 INSTALL_WRKSRC=         {{BUILD_WRKSRC}}
39
40 CXXFLAGS=               {{LDFLAGS}}
41
42 do-build:
43         (cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
44         ./build.sh ${MAKE_ARGS:C,^${DESTDIRNAME}=.*,,g} ${BUILD_TARGET})
45
46 pre-configure:
47         # removing -O3 flag
48         ${REINPLACE_CMD} -e 's|-O3 ||g' ${BUILD_WRKSRC}/build.sh
49         # hardcode executable path on fallback
50         ${REINPLACE_CMD} -e 's|@LOCALBASE@|${PREFIX}|' ${BUILD_WRKSRC}/pathsys.cpp
51
52 do-install:
53         ${MKDIR} ${STAGEDIR}${PREFIX}/bin
54         ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/b2 ${STAGEDIR}${PREFIX}/bin/
55         (cd ${STAGEDIR}${PREFIX}/bin && ln -s b2 bjam)
56
57 [FILE:233:descriptions/desc.single]
58 Boost.Jam (BJam) is a build tool based on FTJam, which in turn is
59 based on Perforce Jam. It contains significant improvements made to
60 facilitate its use in the Boost Build System, but should be backward
61 compatible with Perforce Jam.
62
63
64 [FILE:99:distinfo]
65 71feeed900fbccca04a3b4f2f84a7c217186f28a940ed8b7ed4725986baf99fa    118797750 boost_1_81_0.tar.bz2
66
67
68 [FILE:15:manifests/plist.single]
69 bin/
70  b2
71  bjam
72
73
74 [FILE:315:patches/patch-tools_build_src_engine_jam.h]
75 --- tools/build/src/engine/jam.h.orig   2021-08-05 09:43:08 UTC
76 +++ tools/build/src/engine/jam.h
77 @@ -304,7 +304,7 @@
78      #define OSMINOR "OS=SINIX"
79      #define OS_SINIX
80  #endif
81 -#ifdef sun
82 +#ifdef __sun
83      #if defined(__svr4__) || defined(__SVR4)
84          #define OSMINOR "OS=SOLARIS"
85          #define OS_SOLARIS
86
87
88 [FILE:1435:patches/patch-tools_build_src_engine_pathsys.cpp]
89 --- tools/build/src/engine/pathsys.cpp.orig     2021-08-05 09:43:08 UTC
90 +++ tools/build/src/engine/pathsys.cpp
91 @@ -434,36 +434,6 @@ char * executable_path( char const * arg
92  #else
93  char * executable_path( char const * argv0 )
94  {
95 -    char * result = nullptr;
96 -    /* If argv0 is an absolute path, assume it is the right absolute path. */
97 -    if (!result && b2::paths::is_rooted(argv0))
98 -        result = strdup( argv0 );
99 -    // If argv0 is a relative path, we can compute the absolute one from the
100 -    // current working dir.
101 -    if (!result && b2::paths::is_relative(argv0))
102 -    {
103 -        auto p = b2::paths::normalize(b2::cwd_str()+"/"+argv0);
104 -        result = strdup( p.c_str() );
105 -    }
106 -    // If it's a bare basename, search the PATH for a match.
107 -    if (!result)
108 -    {
109 -        std::string path_env = getenv( "PATH" );
110 -        std::string::size_type i = 0;
111 -        while (i != std::string::npos)
112 -        {
113 -            std::string::size_type e = path_env.find_first_of(':', i);
114 -            std::string p = e == std::string::npos
115 -                ? path_env.substr(i)
116 -                : path_env.substr(i, e-i);
117 -            if (b2::filesys::is_file(p+"/"+argv0))
118 -            {
119 -                result = strdup( (p+"/"+argv0).c_str() );
120 -                break;
121 -            }
122 -            i = e == std::string::npos ? e : e+1;
123 -        }
124 -    }
125 -    return result;
126 +    return strdup("@LOCALBASE@/bin/jam");
127  }
128  #endif
129