seafile-seahub: fix python-package.mk include
[feed/packages.git] / net / seafile-seahub / patches / 020-Makefile-fixes.patch
1 diff -rupN seafile-seahub-6.2.2.orig/Makefile seafile-seahub-6.2.2/Makefile
2 --- seafile-seahub-6.2.2.orig/Makefile 2017-10-22 22:28:22.000000000 +0200
3 +++ seafile-seahub-6.2.2/Makefile 2017-10-22 22:46:18.007470936 +0200
4 @@ -1,3 +1,6 @@
5 +include $(TOPDIR)/rules.mk
6 +include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
7 +
8 PROJECT=seahub
9
10 develop: setup-git
11 @@ -9,7 +12,9 @@ dist: locale uglify statici18n collectst
12
13 locale:
14 @echo "--> Compile locales"
15 - django-admin.py compilemessages && cd seahub/two_factor && django-admin.py compilemessages
16 + $(call HostPython,,$(STAGING_DIR)/usr/bin/django-admin.py compilemessages)
17 + cd seahub/two_factor
18 + $(call HostPython,,$(STAGING_DIR)/usr/bin/django-admin.py compilemessages)
19 @echo ""
20
21 uglify:
22 @@ -19,17 +24,17 @@ uglify:
23
24 statici18n:
25 @echo "--> Generate JS locale files in static/scripts/i18n"
26 - python manage.py compilejsi18n
27 + $(call HostPython,,manage.py compilejsi18n)
28
29 collectstatic:
30 @echo "--> Collect django static files to media/assets"
31 rm -rf media/assets 2> /dev/null
32 - python manage.py collectstatic --noinput
33 + $(call HostPython,,manage.py collectstatic --noinput)
34
35 compressstatic:
36 @echo "--> Compress static files(css) to media/CACHE"
37 rm -rf media/CACHE 2> /dev/null
38 - python manage.py compress
39 + $(call HostPython,,manage.py compress)
40
41 clean:
42 @echo '--> Cleaning media/static cache & dist'