Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 26 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
![example branch parameter](https://github.com/jlab/gapc/actions/workflows/c-cpp.yml/badge.svg)
[![Anaconda-Server Badge](https://anaconda.org/bioconda/bellmans-gapc/badges/version.svg)](https://anaconda.org/bioconda/bellmans-gapc)
<a href="https://launchpad.net/~janssenlab/+archive/ubuntu/software" style="border: none;"><img src="http://media.launchpad.net/lp-badge-kit/launchpad-badge-w160px.png" alt="Launchpad logo" style="border: none;" height="20px;"/></a>

```
____ _ _ _ _____ _____
| _ \ | | | ( ) / ____| /\ | __ \
____ _ _ _ _____ _____
| _ \ | | | ( ) / ____| /\ | __ \
| |_) | ___| | |_ __ ___ __ _ _ __ |/ ___ | | __ / \ | |__) |
| _ < / _ \ | | '_ ` _ \ / _` | '_ \ / __| | | |_ | / /\ \ | ___/
| |_) | __/ | | | | | | | (_| | | | | \__ \ | |__| |/ ____ \| |
|____/ \___|_|_|_| |_| |_|\__,_|_| |_| |___/ \_____/_/ \_\_|
```
| _ < / _ \ | | '_ ` _ \ / _` | '_ \ / __| | | |_ | / /\ \ | ___/
| |_) | __/ | | | | | | | (_| | | | | \__ \ | |__| |/ ____ \| |
|____/ \___|_|_|_| |_| |_|\__,_|_| |_| |___/ \_____/_/ \_\_|
```

## Dependencies

Bellman's GAP was tested on the following dependencies.

compile time:

- C++ compiler (GCC g++ for example)
- C compiler (GCC for example)
- Flex >= 2.5.34
- GNU bison >= 2.4.1
- GNU make >= 3.81
- Mercurial >= 0.9.5
- boost >= 1.36 (1.34 without the Accumulators Framework)
- boost >= 1.36 (1.34 without the Accumulators Framework)
- unittest framework (libboost-test-dev)
- pool
- program options (libboost-program-options-dev)
Expand All @@ -30,7 +32,8 @@ compile time:
- ksh93 - or - bash >= 2.03.0(1) (only needed for test scripts)

runtime:
- boost >= 1.36 (1.34 without the Accumulators Framework)

- boost >= 1.36 (1.34 without the Accumulators Framework)
- pool
- program options
- cstdint
Expand All @@ -41,7 +44,6 @@ runtime:
Always get the latest sources from github:
`git clone https://github.com/jlab/gapc.git`


## INSTALLATION

### from source
Expand All @@ -55,6 +57,7 @@ To install Bellman's GAP from source call:
If `--prefix` is not set the path defaults to `/usr/local`

More options for `./configure` are:

```
CXX=<g++ path>
CC=<gcc path>
Expand All @@ -68,6 +71,7 @@ BISON=<bison path>
### conda

You can find [conda](https://bioconda.github.io/user/install.html) packages for linux-64 and osx-64 in the [bioconda channel: https://anaconda.org/bioconda/bellmans-gapc](https://anaconda.org/bioconda/bellmans-gapc) for easy installation into your conda environment:

```
conda install -c bioconda bellmans-gapc
```
Expand All @@ -77,18 +81,29 @@ conda install -c bioconda bellmans-gapc
Bellman's GAP is available as a pre-compiled Debian package via Ubuntus launchpad system, a Ubuntu Personal Package Archive (PPA).
Packages for Ubuntu versions 16.04 (Xenial) and newer can be obtained from janssenlab/software.
On your command line, execute the three following commands

```
sudo add-apt-repository ppa:janssenlab/software
sudo apt-get update
sudo apt-get install bellmansgapc
```
For older Ubuntu releases, have a look at bibi-help/bibitools (Ubuntu versions 10.04, 11.10, 12.04, 12.10, 13.04, 13.10, 14.04, 14.10, 15.04)

For older Ubuntu releases, have a look at bibi-help/bibitools (Ubuntu versions 10.04, 11.10, 12.04, 12.10, 13.04, 13.10, 14.04, 14.10, 15.04)

```
sudo add-apt-repository ppa:bibi-help/bibitools
sudo apt-get update
sudo apt-get install bellmansgapc
```

### Nix

Bellman's GAP is available as a flake the current version of the build can be installed by executing the following command:

```
nix build github:jlab/gapc
```

### MacPorts

Under Mac OS X you may want to use MacPorts to install the compiler. There is a (most likely outdated) ports description on the BiBiServ MacPorts repository. You can install GAP-C via:
Expand Down
93 changes: 93 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
description = "Bellman's GAP compiler";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = {
self,
systems,
nixpkgs,
nixpkgs-unstable,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem
(system: let
pkgs = import nixpkgs {
inherit system;
overlays = [
# make unstable packages available via overlay
(final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
})
];
};
in {
packages.default = pkgs.callPackage ./package.nix {};
devShells.default = import ./shell.nix {inherit pkgs;};
});
}
26 changes: 26 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
stdenv,
fetchFromGitHub,
flex,
bison,
boost,
gsl,
}:
stdenv.mkDerivation {
name = "gapc";
version = "2023-07-05";

src = fetchFromGitHub {
owner = "jlab";
repo = "gapc";
rev = "2023.07.05";
sha256 = "sha256-OzGf8Z4BzHEPmonlOvvvg5G1y1mtrkWSxOHPfBJU7kU=";
};

nativeBuildInputs = [flex bison gsl];
buildInputs = [boost];
configureFlags = ["BOOST_LDFLAGS=-L${boost}/lib"];

doCheck = false;
checkTarget = "test";
}
27 changes: 27 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{pkgs ? import <nixpkgs> {}}:
with pkgs;
mkShell {
nativeBuildInputs = [flex bison gsl];
buildInputs = [
nixpkgs-fmt
unstable.adaptivecpp
#(callPackage ./package.nix {})
cpplint
gdb
gcc
gpp
lldb
clang
boost
flex
bison
gsl
mercurial
];

configureFlags = ["BOOST_LDFLAGS=-L${boost}/lib"];
shellHook = ''
export BOOST_LDFLAGS=-L${boost}/lib
# ./configure --prefix=$(pwd)/debug --with-boost=yes
'';
}