Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Paffenholz apaffenholz

View GitHub Profile
@apaffenholz
apaffenholz / generate_polymake_formula.pl
Last active Jun 5, 2020
generate homebrew formula for polymake
View generate_polymake_formula.pl
#!/usr/bin/perl
use CPAN::FindDependencies;
use File::Basename;
use Digest::SHA;
my %installed;
my @needed = ("Term::ReadLine::Gnu", "SVG", "Moo", "MongoDB", "JSON", "Net::SSLeay" );
View polymake_install_with_brew.sh
#!/bin/bash
BREW_BASE=
SRC_DIR=`mktemp -d`
INSTALL_DIR=/Users/vagrant/poly_install
BRANCH=master
REPO=github
BREW_INSTALLED=0
PERLBREW_INSTALLED=0
PERL_VERSION=`perl --version | grep -oE "5.[0-9]{2}"`
@apaffenholz
apaffenholz / makefile (polymake, all sources)
Last active Apr 5, 2017
Makefile for polymake (http://polymake.org) on Mac OS systems. Downloads and compiles all necessary software (except command line tools and java)
View makefile (polymake, all sources)
#
# (c) Andreas Paffenholz, 2016, 2017
# github.com/apaffenholz
# polymake.org
#
# Published under GPL v3
#
# Makefile for polymake on Mac OS systems
# downloads and installs all required software usually not found on Mac OS systems
# EXCEPT: command line tools and java