mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support staging
This commit is contained in:
parent
972dfb0b2e
commit
09d4f0a0f3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353717
@ -22,22 +22,19 @@ ALL_TARGET= default
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} share/applications/nathive.desktop
|
||||
PORTDATA= *
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/BASE =/ s|=.*|= ${PREFIX}/|; \
|
||||
s|cp -r \([^ ]*\)/|cp -R \1|; \
|
||||
s|python |${PYTHON_CMD} |' ${WRKSRC}/${MAKEFILE}
|
||||
@${REINPLACE_CMD} -e 's|/usr/share/nathive|${DATADIR}|' \
|
||||
${WRKSRC}/${PORTNAME}.desktop
|
||||
.if ! ${PORT_OPTIONS:MDOCS}
|
||||
@${REINPLACE_CMD} -e '/install.*DOC/ d; /mkdir -p.*BASE.*DOC/ d' \
|
||||
${WRKSRC}/${MAKEFILE}
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
${STRIP_CMD} ${WRKSRC}/nathive/libc/*.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- makefile.orig 2010-10-12 23:16:42.000000000 +0400
|
||||
+++ makefile 2013-08-30 20:24:54.366229703 +0400
|
||||
@@ -84,10 +84,7 @@
|
||||
+++ makefile 2014-05-11 16:16:28.000000000 +0400
|
||||
@@ -84,41 +84,36 @@
|
||||
@rm -rf doc/build/html/_sources
|
||||
|
||||
root:
|
||||
@ -12,12 +12,54 @@
|
||||
|
||||
|
||||
dirs:
|
||||
@@ -113,7 +110,7 @@
|
||||
# Exclude source files.
|
||||
find $(BASE)$(APP) -name "*.c" -delete
|
||||
- mkdir -p $(BASE)$(APP)
|
||||
- mkdir -p $(BASE)$(BIN)
|
||||
- mkdir -p $(BASE)$(DOC)
|
||||
- mkdir -p $(BASE)$(LAUNCH)
|
||||
+ mkdir -p $(DESTDIR)$(BASE)$(APP)
|
||||
+ mkdir -p $(DESTDIR)$(BASE)$(BIN)
|
||||
+ mkdir -p $(DESTDIR)$(BASE)$(LAUNCH)
|
||||
+ mkdir -p $(DESTDIR)$(BASE)$(DOC)
|
||||
|
||||
|
||||
install: root dirs unpyc
|
||||
# Shared files.
|
||||
- cp nathive.py $(BASE)$(APP)
|
||||
- cp AUTHORS $(BASE)$(APP)
|
||||
- cp COPYING $(BASE)$(APP)
|
||||
- cp COPYING-BRIEF $(BASE)$(APP)
|
||||
- cp META $(BASE)$(APP)
|
||||
- cp -r cfg/ $(BASE)$(APP)
|
||||
- cp -r img/ $(BASE)$(APP)
|
||||
- cp -r nathive/ $(BASE)$(APP)
|
||||
- cp -r palettes/ $(BASE)$(APP)
|
||||
- cp -r po/ $(BASE)$(APP)
|
||||
- chmod -R 755 $(BASE)$(APP)
|
||||
- # Exclude source files.
|
||||
- find $(BASE)$(APP) -name "*.c" -delete
|
||||
+ cp nathive.py $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp AUTHORS $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp COPYING $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp COPYING-BRIEF $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp META $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp -R cfg $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp -R img $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp -R nathive $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp -R palettes $(DESTDIR)$(BASE)$(APP)
|
||||
+ cp -R po $(DESTDIR)$(BASE)$(APP)
|
||||
+ chmod -R 755 $(DESTDIR)$(BASE)$(APP)
|
||||
# Binary and launcher.
|
||||
- install -m 755 -T nathive.sh $(BASE)$(BIN)/nathive
|
||||
+ install -m 755 nathive.sh $(BASE)$(BIN)/nathive
|
||||
install -m 644 nathive.desktop $(BASE)$(LAUNCH)
|
||||
- install -m 644 nathive.desktop $(BASE)$(LAUNCH)
|
||||
+ install -m 755 nathive.sh $(DESTDIR)$(BASE)$(BIN)/nathive
|
||||
+ install -m 644 nathive.desktop $(DESTDIR)$(BASE)$(LAUNCH)
|
||||
# Documentation.
|
||||
install -m 644 AUTHORS $(BASE)$(DOC)
|
||||
- install -m 644 AUTHORS $(BASE)$(DOC)
|
||||
- install -m 644 COPYING $(BASE)$(DOC)
|
||||
- install -m 644 README $(BASE)$(DOC)
|
||||
+ install -m 644 AUTHORS $(DESTDIR)$(BASE)$(DOC)
|
||||
+ install -m 644 COPYING $(DESTDIR)$(BASE)$(DOC)
|
||||
+ install -m 644 README $(DESTDIR)$(BASE)$(DOC)
|
||||
|
||||
|
||||
uninstall: root
|
||||
|
@ -1,149 +0,0 @@
|
||||
bin/nathive
|
||||
share/applications/nathive.desktop
|
||||
%%DATADIR%%/AUTHORS
|
||||
%%DATADIR%%/COPYING
|
||||
%%DATADIR%%/COPYING-BRIEF
|
||||
%%DATADIR%%/META
|
||||
%%DATADIR%%/cfg/default.cfg
|
||||
%%DATADIR%%/cfg/presets/new/Cover (CD).cfg
|
||||
%%DATADIR%%/cfg/presets/new/Cover (DVD slim).cfg
|
||||
%%DATADIR%%/cfg/presets/new/Cover (DVD).cfg
|
||||
%%DATADIR%%/cfg/presets/new/DIN A3.cfg
|
||||
%%DATADIR%%/cfg/presets/new/DIN A4.cfg
|
||||
%%DATADIR%%/cfg/presets/new/DIN A5.cfg
|
||||
%%DATADIR%%/img/about.png
|
||||
%%DATADIR%%/img/circle.png
|
||||
%%DATADIR%%/img/hud-ok.png
|
||||
%%DATADIR%%/img/hud-rotate.png
|
||||
%%DATADIR%%/img/hud-scale.png
|
||||
%%DATADIR%%/img/icon.png
|
||||
%%DATADIR%%/img/mask.png
|
||||
%%DATADIR%%/img/pattern.png
|
||||
%%DATADIR%%/img/square.png
|
||||
%%DATADIR%%/img/tool-brush.png
|
||||
%%DATADIR%%/img/tool-crop.png
|
||||
%%DATADIR%%/img/tool-eraser.png
|
||||
%%DATADIR%%/img/tool-picker.png
|
||||
%%DATADIR%%/img/tool-select.png
|
||||
%%DATADIR%%/nathive.py
|
||||
%%DATADIR%%/nathive/__init__.py
|
||||
%%DATADIR%%/nathive/gui/__init__.py
|
||||
%%DATADIR%%/nathive/gui/canvas.py
|
||||
%%DATADIR%%/nathive/gui/colorbar.py
|
||||
%%DATADIR%%/nathive/gui/cursor.py
|
||||
%%DATADIR%%/nathive/gui/headbar.py
|
||||
%%DATADIR%%/nathive/gui/hud.py
|
||||
%%DATADIR%%/nathive/gui/main.py
|
||||
%%DATADIR%%/nathive/gui/menubar.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/__init__.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/buttons.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/clear.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/combo.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/entry.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/group.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/message.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/presets.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/spin.py
|
||||
%%DATADIR%%/nathive/gui/multiwidget/toggle.py
|
||||
%%DATADIR%%/nathive/gui/sandbox.py
|
||||
%%DATADIR%%/nathive/gui/sidebar.py
|
||||
%%DATADIR%%/nathive/gui/sidebar_color.py
|
||||
%%DATADIR%%/nathive/gui/sidebar_layers.py
|
||||
%%DATADIR%%/nathive/gui/statusbar.py
|
||||
%%DATADIR%%/nathive/gui/tabs.py
|
||||
%%DATADIR%%/nathive/gui/toolbar.py
|
||||
%%DATADIR%%/nathive/gui/utils.py
|
||||
%%DATADIR%%/nathive/lib/__init__.py
|
||||
%%DATADIR%%/nathive/lib/action/__init__.py
|
||||
%%DATADIR%%/nathive/lib/action/docresize.py
|
||||
%%DATADIR%%/nathive/lib/action/layercontent.py
|
||||
%%DATADIR%%/nathive/lib/action/layercreate.py
|
||||
%%DATADIR%%/nathive/lib/action/layermodify.py
|
||||
%%DATADIR%%/nathive/lib/action/layermove.py
|
||||
%%DATADIR%%/nathive/lib/action/layerremove.py
|
||||
%%DATADIR%%/nathive/lib/actions.py
|
||||
%%DATADIR%%/nathive/lib/buftools.cy
|
||||
%%DATADIR%%/nathive/lib/clipboard.py
|
||||
%%DATADIR%%/nathive/lib/color.py
|
||||
%%DATADIR%%/nathive/lib/config.py
|
||||
%%DATADIR%%/nathive/lib/convert.py
|
||||
%%DATADIR%%/nathive/lib/core.cy
|
||||
%%DATADIR%%/nathive/lib/document.py
|
||||
%%DATADIR%%/nathive/lib/documents.py
|
||||
%%DATADIR%%/nathive/lib/language.py
|
||||
%%DATADIR%%/nathive/lib/layer.py
|
||||
%%DATADIR%%/nathive/lib/layers.py
|
||||
%%DATADIR%%/nathive/lib/log.py
|
||||
%%DATADIR%%/nathive/lib/openraster.py
|
||||
%%DATADIR%%/nathive/lib/plugin.py
|
||||
%%DATADIR%%/nathive/lib/plugins.py
|
||||
%%DATADIR%%/nathive/lib/presets.py
|
||||
%%DATADIR%%/nathive/lib/rgbhsv.cy
|
||||
%%DATADIR%%/nathive/lib/shortcuts.py
|
||||
%%DATADIR%%/nathive/libc/__init__.py
|
||||
%%DATADIR%%/nathive/libc/brush.so
|
||||
%%DATADIR%%/nathive/libc/core.so
|
||||
%%DATADIR%%/nathive/libc/picker.so
|
||||
%%DATADIR%%/nathive/libc/select.so
|
||||
%%DATADIR%%/nathive/plugins/__init__.py
|
||||
%%DATADIR%%/nathive/plugins/about.py
|
||||
%%DATADIR%%/nathive/plugins/brush.cy
|
||||
%%DATADIR%%/nathive/plugins/brush.py
|
||||
%%DATADIR%%/nathive/plugins/clip-copy.py
|
||||
%%DATADIR%%/nathive/plugins/clip-cut.py
|
||||
%%DATADIR%%/nathive/plugins/clip-paste.py
|
||||
%%DATADIR%%/nathive/plugins/close.py
|
||||
%%DATADIR%%/nathive/plugins/console.py
|
||||
%%DATADIR%%/nathive/plugins/crop.py
|
||||
%%DATADIR%%/nathive/plugins/eraser.py
|
||||
%%DATADIR%%/nathive/plugins/home.py
|
||||
%%DATADIR%%/nathive/plugins/new.py
|
||||
%%DATADIR%%/nathive/plugins/open.py
|
||||
%%DATADIR%%/nathive/plugins/paste-file.py
|
||||
%%DATADIR%%/nathive/plugins/picker.cy
|
||||
%%DATADIR%%/nathive/plugins/picker.py
|
||||
%%DATADIR%%/nathive/plugins/preferences.py
|
||||
%%DATADIR%%/nathive/plugins/preset-manager.py
|
||||
%%DATADIR%%/nathive/plugins/quit.py
|
||||
%%DATADIR%%/nathive/plugins/redo.py
|
||||
%%DATADIR%%/nathive/plugins/save.py
|
||||
%%DATADIR%%/nathive/plugins/saveas.py
|
||||
%%DATADIR%%/nathive/plugins/select.cy
|
||||
%%DATADIR%%/nathive/plugins/select.py
|
||||
%%DATADIR%%/nathive/plugins/undo.py
|
||||
%%DATADIR%%/nathive/plugins/view-colorbar.py
|
||||
%%DATADIR%%/nathive/plugins/view-fullscreen.py
|
||||
%%DATADIR%%/nathive/plugins/view-headbar.py
|
||||
%%DATADIR%%/nathive/plugins/view-sidebar.py
|
||||
%%DATADIR%%/palettes/default.pal
|
||||
%%DATADIR%%/po/de.po
|
||||
%%DATADIR%%/po/es.po
|
||||
%%DATADIR%%/po/fr.po
|
||||
%%DATADIR%%/po/hu.po
|
||||
%%DATADIR%%/po/it.po
|
||||
%%DATADIR%%/po/pl.po
|
||||
%%DATADIR%%/po/pt.po
|
||||
%%DATADIR%%/po/pt_BR.po
|
||||
%%DATADIR%%/po/ru.po
|
||||
%%DATADIR%%/po/se.po
|
||||
%%DATADIR%%/po/zh_CN.po
|
||||
@dirrm %%DATADIR%%/po
|
||||
@dirrm %%DATADIR%%/palettes
|
||||
@dirrm %%DATADIR%%/nathive/plugins
|
||||
@dirrm %%DATADIR%%/nathive/libc
|
||||
@dirrm %%DATADIR%%/nathive/lib/action
|
||||
@dirrm %%DATADIR%%/nathive/lib
|
||||
@dirrm %%DATADIR%%/nathive/gui/multiwidget
|
||||
@dirrm %%DATADIR%%/nathive/gui
|
||||
@dirrm %%DATADIR%%/nathive
|
||||
@dirrm %%DATADIR%%/img
|
||||
@dirrm %%DATADIR%%/cfg/presets/select
|
||||
@dirrm %%DATADIR%%/cfg/presets/picker
|
||||
@dirrm %%DATADIR%%/cfg/presets/new
|
||||
@dirrm %%DATADIR%%/cfg/presets/eraser
|
||||
@dirrm %%DATADIR%%/cfg/presets/crop
|
||||
@dirrm %%DATADIR%%/cfg/presets/brush
|
||||
@dirrm %%DATADIR%%/cfg/presets
|
||||
@dirrm %%DATADIR%%/cfg/console
|
||||
@dirrm %%DATADIR%%/cfg
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user