Skip to content

Instantly share code, notes, and snippets.

View lasote's full-sized avatar

Luis Martinez lasote

View GitHub Profile
#!/bin/bash
echo "Xcode CLI tools not found. Installing them..."
touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress;
PROD=$(softwareupdate -l |
grep "\*.*Command Line" |
head -n 1 | awk -F"*" '{print $2}' |
sed -e 's/^ *//' |
tr -d '\n')
echo "Command: $PROD"

Conan-Center-Index project Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan-Center-Index project (https://github.com/conan-io/conan-center-index)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.
@lasote
lasote / changelog.md
Created April 23, 2018 16:05
Temp changelog
  • The filesystem is not shared anymore with the docker containers, every container will upload their own packages/recipe, so it is not needed to share the conan home. The remotes and all the needed configuration is passed as environment variables.
  • Better remotes configuration, supporting remote naming and use SSL parameter.
    • As parameter of ConanMultiPackager, remotes can be a list of strings separated by , of a tuple containing URL, use ssl and remote name:
        remotes = "https://api.bintray.com/conan/conan-community/conan,https://api.bintray.com/conan/other/conan2"
        remotes = [("https://api.bintray.com/conan/conan-community/conan", True, "remote1"), 
                        ("https://api.bintray.com/conan/other/conan2", False, "remote2")]
    
    • As environment variable:
CONAN_PRINT_RUN_COMMANDS=1 conan create . kk/kk
libcurl/7.56.1@kk/kk: Exporting package recipe
libcurl/7.56.1@kk/kk export: Copied 1 '.cmake' files: FindCURL.cmake
libcurl/7.56.1@kk/kk export: Copied 1 '.txt' files: CMakeLists.txt
libcurl/7.56.1@kk/kk export: Copied 1 '.am' files: lib_Makefile_add.am
libcurl/7.56.1@kk/kk: A new conanfile.py version was exported
libcurl/7.56.1@kk/kk: Folder: /Users/luism/.conan/data/libcurl/7.56.1/kk/kk/export
libcurl/7.56.1@kk/kk: Package recipe modified in export, forcing source folder removal
libcurl/7.56.1@kk/kk: Use the --keep-source, -k option to skip it
libcurl/7.56.1@kk/kk: Removing 'source' folder, this can take a while for big packages
@lasote
lasote / gist:92417738849e57033acc0aeb5101099b
Created September 7, 2017 14:33
Build info for simple zlib create package and upload
{
"version": "1.0.1",
"name": "conan1",
"number": "5",
"type": "GENERIC",
"buildAgent": {
"name": "Pipeline",
"version": "Pipeline"
},
"agent": {
@lasote
lasote / conanfile.py
Created February 17, 2017 11:06
GMPConan with new env refactor
import os
from conans import ConanFile, tools, AutoToolsBuildEnvironment
class GmpConan(ConanFile):
name = "gmp"
version = "6.1.1"
license = ""
url = "https://github.com/plexinc/plex-conan"
settings = "os", "compiler", "build_type", "arch"

Conan package tools project Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan package tools project (https://github.com/conan-io/conan-package-tools)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.

Conan docs project Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan docs project (https://github.com/conan-io/docs)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.
@lasote
lasote / conan_project_CLA.md
Last active December 19, 2016 11:05
Conan project CLA

Conan project Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Contribution - any type of work that is submitted to the repository, including any modifications or additions to existing work.
  • Project - Conan project (https://github.com/conan-io/conan)
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with the copyright owner, contributors or maintainers.
@lasote
lasote / build_with_docker.py
Created January 9, 2016 17:08
Build conan packages with docker
import os
import platform
import sys
if __name__ == "__main__":
if len(sys.argv)==2:
versions = [sys.argv[1]]
else:
versions = ["4.6", "4.8", "4.9", "5.2", "5.3"]