Created
April 16, 2019 20:54
-
-
Save CatherineH/f4cb35fc15371966e22c6b6594f3a3b2 to your computer and use it in GitHub Desktop.
playbook for setting up inkstitch in wsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
vars: | |
po: en_US | |
username: CatherineH | |
branch: change-pip-url | |
tasks: | |
- name: install debian packages | |
become: true | |
apt: | |
name: "{{ packages }}" | |
vars: | |
packages: | |
- inkscape | |
- python-pip | |
- pkg-config | |
- gettext | |
- libgtk-3-dev | |
- name: install libpng12 | |
become: true | |
apt: | |
deb: http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb | |
- name: checkout repository | |
git: | |
repo: https://github.com/{{ username }}/inkstitch.git | |
dest: ~/inkstitch | |
version: "{{ branch }}" | |
- name: install pythonWx | |
pip: | |
name: wxPython | |
virtualenv: ~/env | |
extra_args: -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 | |
- name: install requirements | |
pip: | |
requirements: ~/inkstitch/requirements.txt | |
virtualenv: ~/env | |
- name: create translation directory | |
file: | |
path: "~/inkstitch/locales/{{ po }}/LC_MESSAGES" | |
state: directory | |
- name: generate translation files | |
shell: | |
msgfmt ~/inkstitch/translations/messages_{{po}}.po -o ~/inkstitch/locales/{{ po }}/LC_MESSAGES/inkstitch.mo | |
- name: create inx directory | |
file: | |
path: ~/inkstitch/inx | |
state: directory | |
- name: generate inx files | |
shell: | |
source env/bin/activate; ~/inkstitch/bin/generate-inx-files | |
- name: link inx files | |
file: | |
src: "{{ item }}" | |
dest: "~/.config/inkscape/extensions/{{ item | basename }}" | |
state: link | |
with_fileglob: | |
- ~/inkstitch/inx/inkstitch_*.inx | |
- ~/inkstitch/inkstitch.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment