Commit bcc22b1c10750b7e24c7c0e9881ac3e5017056f2

Authored by Michał Lenart
1 parent 0ce971a0

praca nad źródłowym pakietem deb do PPA

git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@75 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing 1 changed file with 12 additions and 2 deletions
morfeusz/python/CMakeLists.txt
... ... @@ -73,10 +73,20 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
73 73 DEPENDS package-python-bin package-python-src)
74 74  
75 75 set (PYMORFEUSZ_SRC_PACKAGE "${PROJECT_BINARY_DIR}/pymorfeusz-${PYMORFEUSZ_VERSION}.tar.gz")
76   - add_custom_target (package-python-deb-src
77   - COMMAND py2dsc ${PYMORFEUSZ_SRC_PACKAGE}
  76 + add_custom_target (package-python-deb-sdist
  77 + COMMAND python ${SETUP_PY} --command-packages=stdeb.command sdist_dsc
78 78 DEPENDS package-python-src
79 79 )
  80 + add_custom_target (package-python-debuild
  81 + COMMAND debuild -sa -S
  82 + WORKING_DIRECTORY deb_dist/pymorfeusz-${PYMORFEUSZ_VERSION}
  83 + DEPENDS package-python-deb-sdist
  84 + )
  85 + add_custom_target (package-python-deb-ppa
  86 + COMMAND dput ppa:lennyn/morfeusz pymorfeusz*_source.changes
  87 + WORKING_DIRECTORY deb_dist
  88 + DEPENDS package-python-debuild
  89 + )
80 90 endif ()
81 91 #~ install (install-python
82 92 #~ COMMAND python ${SETUP_PY} install --home=${CMAKE_INSTALL_PREFIX}
... ...