Skip to content

Instantly share code, notes, and snippets.

@apaffenholz
apaffenholz / makefile (polymake, all sources)
Last active April 5, 2017 12:11
Makefile for polymake (http://polymake.org) on Mac OS systems. Downloads and compiles all necessary software (except command line tools and java)
#
# (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
@apaffenholz
apaffenholz / generate_polymake_formula.pl
Last active June 5, 2020 22:10
generate homebrew formula for polymake
#!/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" );
#!/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}"`