[ITP] biosig [was: Re: newcomer issues when packaging biosig, stimfit, etc.]

Alois Schlögl alois.schloegl@gmail.com
Wed Jan 12 22:59:39 GMT 2022



Am 1/12/22 um 06:47 schrieb Marco Atzeri:
>> In the meantime, please find below the status for the libb64 and 
>> biosig packages.
>
>> Thanks that was helpful. Attached is an updated version for biosig 
>> and libb64.
>>
>> cygport libb64.cygport all
>> cygport biosig.cygport all
>>
>> runs now w/o error. How can I test whether result can be installed 
>> and used ?
>
> One major problem.
> Never build in the source directory, the final src.patch
> must fit with you desired patch.
> So only what you patched should come out.
>
> For this package that does not respect the build in a
> different directory than source, you shoud start
> with something like:
>
> src_compile() {
>         cd ${S}
>         lndirs
>         cd ${B}
>         cygautoreconf
>         cygconf
>         cygmake
> } 



I've adapted biosig.cygport accordingly and addressed this in the 
attached version. It runs fine when doing

    cygport biosig.cygport all

runs w/o error. Also testing the package with

tar -C / -xvf 
biosig-2.3.3-1.x86_64/dist/biosig/biosig-tools/biosig-tools-2.3.3-1.tar.xz
tar -C / -xvf 
biosig-2.3.3-1.x86_64/dist/biosig/libbiosig/libbiosig-2.3.3-1.tar.xz
tar -C / -xvf 
biosig-2.3.3-1.x86_64/dist/biosig/libbiosig-devel/libbiosig-devel-2.3.3-1.tar.xz

and running
    save2gdf -h
works fine.

Moreover, I understand now why my libb64.cygport file is not ready. 
ecause libb64 is not necessary for libbiosig's support of Stimfit, I'll 
omit libb64 for now.
Would you please check whether Biosig is ready to be included in cygwin ?


Cheers,
    Alois
-------------- next part --------------
# package name
NAME="biosig"
VERSION=2.3.3
RELEASE=1

# .hint generation
CATEGORY="Libs,Science"
SUMMARY="Tools for biomedical signal processing."
DESCRIPTION="BioSig is an open source software library for 
biomedical signal processing, featuring for example the 
analysis of biosignals such as the electroencephalogram (EEG), 
electrocorticogram (ECoG), electrocardiogram (ECG), 
electrooculogram (EOG), electromyogram (EMG), respiration, 
and so on. Major application areas are: Neuroinformatics, 
brain-computer interfaces, neurophysiology, psychology, c
ardiovascular systems and sleep research. The aim of the 
BioSig project is to foster research in biomedical signal 
processing by providing open source software tools for many 
different applications. Generally, many concerns have to be a
ddressed in this scientific field. BioSig handles this by providing 
solutions for data acquisition, artifact processing, quality control, 
feature extraction, classification, modeling, data visualization, etc. "

# source and patch files
SRC_URI="https://sourceforge.net/projects/biosig/files/BioSig%20for%20C_C%2B%2B/src/biosig-2.3.3.src.tar.gz"

# PATCH_URI="biosig-2.3.3-fix-build.patch"

# use the standard src_compile, src_install and src_test


PKG_NAMES="libbiosig libbiosig-devel biosig-tools"

biosig_tools_CONTENTS="
  usr/bin/save2gdf.exe
  usr/bin/physicalunits.exe
  usr/bin/biosig2gdf.exe
  usr/share/man/man1/save2gdf.1.gz  
  usr/share/man/man1/biosig2gdf.1.gz
  usr/share/man/man1/biosig_fhir.1.gz  
  usr/share/man/man1/physicalunits.1.gz

  usr/share/doc/biosig/COPYING
  usr/share/doc/biosig/README
"
# not included yet
# usr/share/man/biosig_fhir.1  usr/share/man/sigviewer.1


libbiosig_CONTENTS="
  usr/bin/libbiosig.dll
  usr/bin/libphysicalunits.dll
"

libbiosig_devel_CONTENTS="
  usr/include/biosig-dev.h 
  usr/include/biosig.h 
  usr/include/biosig2.h 
  usr/include/gdftime.h 
  usr/include/physicalunits.h 
  usr/include/biosig-network.h
  usr/include/mdc_ecg_codes.h

  usr/lib/libbiosig.a
  usr/lib/libbiosig.dll.a 
  usr/lib/libphysicalunits.a
  usr/lib/libphysicalunits.dll.a 
  usr/lib/pkgconfig/libbiosig.pc
"

DIFF_EXCLUDES="depend"

# use not standard src_compile, src_install and src_test

src_compile() {
        cd ${S}
        lndirs
        cd ${B}
        cygautoreconf
        cygconf  # --prefix=/usr
	# libbiosig
	cygmake lib
	# biosig-tools w/o biosig_fhir
	cygmake -C biosig4c++ save2gdf physicalunits biosig2gdf
	# python3-biosig
}

src_install() {
	cd ${S}

	doinclude ${S}/biosig4c++/*.h
	
	dobin ${B}/biosig4c++/save2gdf.exe 
        # dobin ${B}/biosig4c++/biosig_fhir.exe
	dobin ${B}/biosig4c++/biosig2gdf.exe 
	dobin ${B}/biosig4c++/physicalunits.exe 
	dobin ${B}/biosig4c++/libbiosig.dll 
	dobin ${B}/biosig4c++/libphysicalunits.dll 

	dolib ${B}/biosig4c++/libbiosig.dll.a 
	dolib ${B}/biosig4c++/libbiosig.a 
	dolib ${B}/biosig4c++/libphysicalunits.dll.a 
	dolib ${B}/biosig4c++/libphysicalunits.a 

        dopkgconfig ${B}/biosig4c++/libbiosig.pc

	# doman ${S}/biosig4c++/doc/bin2rec.1
        doman ${S}/biosig4c++/doc/biosig2gdf.1
        doman ${S}/biosig4c++/doc/biosig_fhir.1
        doman ${S}/biosig4c++/doc/physicalunits.1
        doman ${S}/biosig4c++/doc/save2gdf.1

}

src_test() {
    cd ${S}
    biosig4c++/physicalunits.exe
    biosig4c++/save2gdf.exe  --help
    # biosig4c++/biosig_fhir.exe --help
}

-------------- next part --------------
# comment
sdesc: "Tools for biomedical signal processing"
ldesc: "Library for biomedical signal processing, 
featuring for example the analysis of biosignals such 
as the electroencephalogram (EEG), electrocorticogram (ECoG), 
electrocardiogram (ECG), electrooculogram (EOG), electromyogram (EMG), 
respiration, etc. Major application areas are: Neuroinformatics, 
brain-computer interfaces, neurophysiology, psychology, 
cardiovascular systems and sleep research. The aim of the 
BioSig project is to foster research in biomedical signal 
processing by providing open source software tools for many 
different applications. Generally, many concerns have to be addressed 
in this scientific field. BioSig handles this by providing solutions for 
data acquisition, artifact processing, quality control, feature extraction, 
classification, modeling, data visualization, etc. "
category: Libs,Science,Utils
requires: libb64 libcholmod tinyxml cygwin
# depends: version-relation[, version-relation...]
# obsoletes: version-relation[, version-relation...]
# provides: package[, package...]
# conflicts: version-relation[, version-relation...]
external-source: release/biosig/biosig-2.3.3-1-src.tar.xz
# message: id "some text"
test:
version: 2.3.3
# disable-check: check-name [check-name...]





-------------- next part --------------
A non-text attachment was scrubbed...
Name: biosig-2.3.3-1.src.patch
Type: text/x-patch
Size: 4871 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-apps/attachments/20220112/f088b025/attachment.bin>
-------------- next part --------------
# comment
sdesc: "Tools for biomedical signal processing"
ldesc: "Library for biomedical signal processing, 
featuring for example the analysis of biosignals such 
as the electroencephalogram (EEG), electrocorticogram (ECoG), 
electrocardiogram (ECG), electrooculogram (EOG), electromyogram (EMG), 
respiration, etc. Major application areas are: Neuroinformatics, 
brain-computer interfaces, neurophysiology, psychology, 
cardiovascular systems and sleep research. The aim of the 
BioSig project is to foster research in biomedical signal 
processing by providing open source software tools for many 
different applications. Generally, many concerns have to be addressed 
in this scientific field. BioSig handles this by providing solutions for 
data acquisition, artifact processing, quality control, feature extraction, 
classification, modeling, data visualization, etc. "
category: Libs,Science,Utils
homepage: http://biosig.sourceforge.net/
build-depends: libb64 libcholmod-dev libtinyxml libz 
test:
skip:
version: 2.3.3
# disable-check: check-name [check-name...]
-------------- next part --------------
# comment
sdesc: "Libary for biomedical signal processing"
ldesc: "Libary for biomedical signal processing"
category: Libs
requires: cholmod cygwin
# depends: version-relation[, version-relation...]
# obsoletes: version-relation[, version-relation...]
provides: libbiosig
# conflicts: version-relation[, version-relation...]
external-source: biosig
# message: id "some text"
test:
version: 2.3.3
# disable-check: check-name [check-name...]





-------------- next part --------------
# comment
sdesc: "Libary for biomedical signal processing"
ldesc: "Libary for biomedical signal processing"
category: Libs
requires: cholmod-devel cygwin
# depends: version-relation[, version-relation...]
# obsoletes: version-relation[, version-relation...]
# provides: libbiosig
# conflicts: version-relation[, version-relation...]
external-source: biosig
# message: id "some text"
test:
version: 2.3.3
# disable-check: check-name [check-name...]







More information about the Cygwin-apps mailing list