GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

4 versions of ProtoBuf.

ProgramAgeSizeByWWWSummary
ProtoBuf 3.4.1-r1 693  919 Luca...
Google Protocol Buffers
ProtoBuf 2.5.0-r1 1817  1325 Luca...
Google Protocol Buffers
ProtoBuf 2.3.0-r1 3324  1327 Kevi...
Google Protocol Buffers
ProtoBuf 2.0.3-r1 3827  1291 Mich...
Google Protocol Buffers
view entry at GitHub | download recipe.bz2 file
Recipe
Resources/BuildInformation
Resources/Dependencies
Resources/Description
# Recipe (MakeRecipe) for ProtoBuf by Michael Homer <michael@gobolinux.org>, on Sat \
Dec 20 13:48:49 NZDT 2008
# Recipe for version 2.0.3 by Michael Homer <michael@gobolinux.org>, on Sat Dec 20 \
13:48:49 NZDT 2008
compile_version=1.11.4
url="http://protobuf.googlecode.com/files/protobuf-2.0.3.tar.bz2"
file_size=800667
file_md5=37e6e4d63434672c70bd977be9c372cb
recipe_type=configure

using_python_pre_link() {
   # There is a regular python-type build under the "python" directory
   # As we have no concept of nested types, this duplicates the
   # behaviour of Type_python, but is unsandboxed.
   pushd python
   local pythonver=$(python -V 2>&1 | sed 's,Python \([0-9]*\.[0-9]*\).*,\1,')
   local sitepackages="${target}/lib/python${pythonver}/site-packages"
   local orig_PYTHONPATH="${PYTHONPATH}"
   export PYTHONPATH="$sitepackages"
   mkdir -p "$sitepackages"
   python setup.py build || Die "Python build failed."
   python setup.py build --build-lib "$sitepackages" || Die "Python build_ext failed."
   python setup.py install --prefix "$target" || Die "Python install failed."
   # easy_install tries to update site.py and install an egg file
   rm -f "$sitepackages"/*.*
   export PYTHONPATH="${orig_PYTHONPATH}"
   popd
}