Skip to content

Commit 042c5a0

Browse files
committed
Build with ncurses from Homebrew on macOS.
The stock ncurses on macOS doesn't come with the wide libraries which are required to link this package.
1 parent c873608 commit 042c5a0

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
language: d
22

3+
os:
4+
- linux
5+
- osx
6+
37
d:
48
- dmd
59
- ldc
610
- gdc
711

12+
matrix:
13+
exclude:
14+
- os: osx
15+
d: gdc
16+
17+
before_install:
18+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ncurses; fi
19+
820
script:
921
- dub build
1022
- dub build -c panels

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ To use a specific configuration in your projects, depend on this package by addi
2828
}
2929
```
3030

31+
Building on macOS
32+
-----------------
33+
34+
The stock ncurses libraries on macOS don't include the wide libraries. Thus the full ncurses version needs to be installed with [Homebrew](https://brew.sh/). Homebrew installs ncurses below ```/usr/local/opt/ncurses```, where the dub configuration will pick it up.
35+
36+
First install Homebrew using the instructions on the web site, then you can add the ncurses package with
37+
38+
````
39+
brew install ncurses
40+
````
41+
3142
WARNINGS & PRECAUTIONS
3243
----------------------
3344
What files make up the 'official' ncurses package?

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"license": "ncurses",
1111
"targetType": "staticLibrary",
1212
"targetName": "ncurses-d",
13+
"lflags-osx": ["-L/usr/local/opt/ncurses/lib"],
1314
"configurations": [
1415
{
1516
"name": "minimal",

0 commit comments

Comments
 (0)