1 # Maintainer: Tianjiao Yin <ytj000(at)gmail(dot)(see)(oh)(em)>
2 # Contributor: Tianjiao Yin <ytj000(at)gmail(dot)(see)(oh)(em)>
4 # Howto get revision number ?
5 # svn log http://svn.boost.org/svn/boost/trunk --limit 1 | grep -m 1 -o r.* | cut -d \| -f 1 | sed s@r@@g
8 _svntrunk=http://svn.boost.org/svn/boost/trunk
10 # The newest svn version may failed to compile.
11 # If this happens, comment the next line.
15 arch=('i686' 'x86_64')
16 url="http://www.boost.org/"
19 depends=('icu' 'python' 'python2' 'openmpi' 'docbook-xml' 'docbook-xsl' 'libxslt' 'doxygen')
21 # For boost documentation. If you don't need any document, you can remove this and any
22 # documentation parts in build() and package()
23 makedepends=( 'subversion' 'texlive-bibtexextra' 'texlive-core'
24 'texlive-fontsextra' 'texlive-formatsextra' 'texlive-games'
25 'texlive-genericextra' 'texlive-htmlxml' 'texlive-humanities'
26 'texlive-latexextra' 'texlive-music' 'texlive-pictures' 'texlive-plainextra'
27 'texlive-pstricks' 'texlive-publishers' 'texlive-science')
30 conflicts=('boost' 'boost-libs' 'boost-build')
31 provides=('boost' 'boost-libs' 'boost-build' 'boost-tools')
33 pkgdesc="Free peer-reviewed portable C++ source libraries. Include boost tools."
35 source=(boost-build-config boost-svn.install cleaner)
36 install=boost-svn.install
37 _boostdir="${srcdir}/boost-trunk"
38 _svndir="${srcdir}/boost-trunk-svn"
39 _stagedir="${srcdir}/stage"
40 _builddir="${srcdir}/build"
46 svn co ${_svntrunk} ${_svndir} -r ${pkgver}
47 cp ${_svndir} ${_boostdir} -R
49 # ======================================================================== #
51 # Don't remove this unless you want to build by hand.
52 # ======================================================================== #
55 _bjampath="${_boostdir}/bjam"
56 _boostbook_path="${_boostdir}/tools/boostbook"
57 _bjammake="${_bjampath} release ${MAKEFLAGS} --ignore-config"
59 # ======================================================================== #
60 # Setting project-config.jam for boost build
61 # ======================================================================== #
62 python3 "${srcdir}/boost-build-config" --setup \
63 -o project-config.jam \
64 -b ${_boostbook_path} \
65 -a quickbook "using quickbook ;"
67 # ======================================================================== #
69 # ======================================================================== #
71 --prefix=${_stagedir} \
74 # ======================================================================== #
76 # ======================================================================== #
77 cd "${_boostdir}/tools"
79 install -m755 "${_boostdir}/bjam" "${_boostdir}/dist/bin/bjam"
81 # ======================================================================== #
83 # ======================================================================== #
90 # All this parts are independent. You can remove anyone is you don't like it.
92 # ======================================================================== #
93 # ======================= Boost ======================= #
94 # ======================================================================== #
96 #pkgdesc="Free peer-reviewed portable C++ source libraries - Development"
97 #depends=("boost-libs-svn=${pkgver}")
98 #optdepends=('python: for python bindings' 'python2: for python2 bindings')
102 install -d "${pkgdir}"/usr/{include,lib}
104 # headers/source files
105 cp -r "${_stagedir}"/include/ "${pkgdir}"/usr/
108 cp -r "${_stagedir}"/lib/*.a "${pkgdir}"/usr/lib/
111 install -D -m644 "${_boostdir}/LICENSE_1_0.txt" \
112 "${pkgdir}"/usr/share/licenses/boost/LICENSE_1_0.txt
114 # ======================================================================== #
115 # ======================= Boost Libs ======================= #
116 # ======================================================================== #
118 #pkgdesc="Free peer-reviewed portable C++ source libraries - Runtime"
119 #depends=('gcc-libs' 'icu')
120 #optdepends=('openmpi: for mpi support')
121 #conflicts=('boost-libs')
122 #provides=('boost-libs')
124 install -d "${pkgdir}/usr/lib"
127 cp -r "${_stagedir}"/lib/*.so{,.*} "${pkgdir}/usr/lib/"
129 # ======================================================================== #
130 # ======================= BoostTools ======================= #
131 # ======================================================================== #
133 #pkgdesc="Toolset of Boost, include boostbuild, boostbook, bcp, etc."
134 #depends=("python" "openmpi" "docbook-xml" "docbook-xsl" "libxslt" "doxygen")
135 #conflicts=('boost-build' 'boost-tools')
136 #provides=('boost-build' 'boost-tools')
138 cp -r "${_boostdir}"/dist/* "${pkgdir}"/usr/
140 install -D -m755 "${srcdir}/boost-build-config" "${pkgdir}/etc/rc.d/boost-build-config"
142 install -d "${pkgdir}/usr/share"
143 cd "${_boostdir}/tools/build/"
144 cp -R "v2" "${pkgdir}/usr/share/boost-build"
146 _site_cfg="${pkgdir}/etc/site-config.jam"
151 rm -rf "${pkgdir}/usr/share/boost-build/engine"
153 # clean svn directory
154 #find ${pkgdir} -type d -name ".svn" | xargs rm -rf
156 # ======================================================================== #
157 # ======================= Boost Documetation ======================= #
158 # ======================================================================== #
161 # pkgdesc="Boost Documetation"
166 python3 "${srcdir}/cleaner" remove
169 mkdir -p "${pkgdir}/usr/share/doc"
170 mv ${_boostdir} "${pkgdir}/usr/share/doc/boost"
172 # ======================================================================== #
173 # clean svn directory
174 # ======================================================================== #
176 find ${pkgdir} -type d -name ".svn" | xargs rm -rf
178 md5sums=('fa8b1c5b9cd7fc31fbbc91cb1286c4c6'
179 'd5a7f2be0b28f41f2a3107252544a4f1'
180 'f000ab20a4976a564dbc9ac8eeed2766')